LP#1832897: improvements to eg-fm-record-editor
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 11 Jun 2019 23:07:37 +0000 (19:07 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 29 Aug 2019 14:31:54 +0000 (10:31 -0400)
commitd8986fc8ea35f349a1c15aee25cb748159ef09d5
treead697298712ddab1d694c1d3cc14de4d5f2a8266
parenta6c3734134dd2248f91107da2fbdc82dba2cb278
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>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
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