LP#1832897: improvements to eg-fm-record-editor
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 11 Jun 2019 23:07:37 +0000 (19:07 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 4 Sep 2019 02:30:48 +0000 (19:30 -0700)
commite222aa73bfef5d6a083932bca991243e7b741e83
treefe766e88238f6fb870442b4c1fd850164dcf9519
parent924a4dc1853705d54e57924ff8f9ef51be395e92
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>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
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