]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1852782 MARC editor prevent navigation with changes
authorBill Erickson <berickxx@gmail.com>
Tue, 10 Dec 2019 22:35:49 +0000 (17:35 -0500)
committerBill Erickson <berickxx@gmail.com>
Tue, 31 Dec 2019 16:23:02 +0000 (11:23 -0500)
commit2e0a73dd06151b6d27c9396b597c78bb65517c99
tree7ae4ce7bec9c0c323ca288a85427bb11094b23de
parentd39076cefc4224abd81e15f917118ca2deb13f45
LP1852782 MARC editor prevent navigation with changes

Show a confirmation dialog when the user attempts to navigate away from
the MARC edit tab in the catalog if the MARC editor has pending changes.

The dialog will be shown if the user attempts to change tabs or navigate
away from the record detail page w/in Angular.

If the user unloads / reloads the page, the stock browser onbeforeunload
confirmation dialog will be displayed instead.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/util/can-deactivate.guard.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.html
Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/routing.module.ts
Open-ILS/src/eg2/src/app/staff/share/marc-edit/editable-content.component.ts
Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor-context.ts
Open-ILS/src/eg2/src/app/staff/share/marc-edit/editor.component.ts
Open-ILS/src/eg2/src/app/staff/share/marc-edit/flat-editor.component.html
Open-ILS/src/eg2/src/app/staff/share/marc-edit/flat-editor.component.ts