LP1807461 Admin page avoid errors on dialog dismissal
authorBill Erickson <berickxx@gmail.com>
Wed, 23 Jan 2019 22:30:26 +0000 (17:30 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 22 Mar 2019 19:42:53 +0000 (15:42 -0400)
commit0e18c2fe13b72c9b91f9b4dbcaf883c70cae2d4b
tree335ff06b1dcf69726c158af663c6b25e35553789
parent84d627cc3a74c1f2a6f37ce985ae5f62693f7b98
LP1807461 Admin page avoid errors on dialog dismissal

Add support to the base DialogComponent class for passing information to
the caller via the reject handler about whether a dialog was dismissed
via user interface interaction (body click, esc key, cross click, cancel
button) or for some other reason, presumably an error.

Teach the generic admin page to avoid toasting errors when an edit or
create dialog is dismissed via UI.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts