LP#
1956986: fix and refactor item alert handing in Angular editor
This patch changes the handling of item alerts in the Angular
Holdings View and Item Attributes editor to be more like how
item notes and item tags are handled.
In particular:
- The separate 'Add Item Alert' and 'Edit Item Alerts' context menu
items in Holdings View are consolidated to a 'Add/Manage Item Alerts'
action.
- Pending new alerts are displayed in separate area of the modal
- The 'Apply Changes' and 'Add New' buttons now work the same way as
item notes and item tags
To test
-------
[1] Apply patch.
[2] Create a new item with one or more item alerts. Verify that they are
properly saved.
[3] Edit an existing item and add, modify, and clear alerts. Verify that
the changes are saved.
[4] From Holdings View, choose 'Add/Manage Item Alerts' with a single
item selected. Verify that changes are saved.
[5] From Holdings View, choose 'Add/Manage Item Alerts' with multiple
items selected. Verify that you are only given the option to add
new alerts. Verify that new alerts are saved.
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Elaine Hardy <ehardy@georgialibraries.org>