LP1809183: Allow passing template to eg-confirm-dialog user/sandbergja/lp1809183-pass-templates-to-eg-confirm-dialog
authorJane Sandberg <sandbej@linnbenton.edu>
Wed, 19 Dec 2018 23:51:25 +0000 (15:51 -0800)
committerJane Sandberg <sandbej@linnbenton.edu>
Mon, 27 May 2019 16:46:13 +0000 (09:46 -0700)
commita24517bd3998bf14215f11cae45e388acb979141
treebe0b497c6c8ee2ae6cc3de455d0d161693c6257c
parent4701869d8e4a1fd57b2ee1c1600b56a98e962e09
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>
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