]> git.evergreen-ils.org Git - working/Evergreen.git/commit
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 20:14:53 +0000 (16:14 -0400)
commit52ae1b1d5adbba0c860db59c06c84b19541e3fc2
treef0df9b0887cde42389519fbf29c3775552782427
parent4a054a7ef822f1094e28f8c0fc3faacd77bd6df4
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