LP1849372 Close all open dialogs on Angular route change user/gmcharlt/lp1849372_signoff
authorBill Erickson <berickxx@gmail.com>
Tue, 22 Oct 2019 19:54:13 +0000 (15:54 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 22 Oct 2019 20:48:26 +0000 (16:48 -0400)
commitc0b21e746f78a94e39616ab20f4dd1f739b50605
treec0d180655cd5d6fc6100ab16f0afe4263d25b13a
parentd0b801b04e2471d0e112fad1a6ed2d779c4800d2
LP1849372 Close all open dialogs on Angular route change

On all angular route changes, force close any open dialogs, since it
makes little sense for them to persist across interfaces.

To test:

[1] Navigate to Server Administration
[2] Navigate to Age Hold Protection Rule Configuration
[3] Double-click a grid row to open an edit dialog
[4] Click browser back button to return to the Server Admin page
[5] Confirm edit dialog closes once the navigation is complete.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/app.component.ts
Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts