]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1809183: Allow passing template to eg-confirm-dialog
authorJane Sandberg <sandbej@linnbenton.edu>
Wed, 19 Dec 2018 23:51:25 +0000 (15:51 -0800)
committerBill Erickson <berickxx@gmail.com>
Tue, 30 Jul 2019 15:38:43 +0000 (11:38 -0400)
commitb9c3bc3b3febd02f2ba1af36dcbb0219e52fff0c
treec7e9c24e08b091da0d2e49c8003b79ec60b2804c
parentc43ac44b3f299ffb73868076e5244e3256d95123
LP1809183: Allow passing template to eg-confirm-dialog

Adds an input called dialogBodyTemplate to <eg-confirm-dialog>. This can
be useful when you want to pass ICU messages to <eg-confirm-dialog>
(e.g. "Are you sure you want to cancel these 3 holds?" vs. "Are you sure
you want to cancel this hold?").

If both dialogBody and dialogBodyTemplate are defined, it will show the
dialogBodyTemplate message.

Also adds a sandbox example.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/dialog/confirm.component.html
Open-ILS/src/eg2/src/app/share/dialog/confirm.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts