LP#1832897: improvements to eg-fm-record-editor
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 11 Jun 2019 23:07:37 +0000 (19:07 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 7 Aug 2019 15:47:16 +0000 (15:47 +0000)
commit21795048184121d3f4a1528f93c3c4ed766b9185
tree243a06670e25fb58e5c271392a97566e9b357f9b
parent85a5031b5169bd47b0bf2cbd1b61ce2d8d6a498c
LP#1832897: improvements to eg-fm-record-editor

* Add a new optional attribute, preSave, for passing a
  callback to modify modify records (e.g.,
  to provide default values) before they are saved.
* Ensure that the components current copy of a record is
  discarded when the user closes or dismisses the modal

  This addresses an issue where editing multiple instances
  of records on an admin page could display (and/or flash)
  stale data, particularly for the new multi-select widget.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts