From a24517bd3998bf14215f11cae45e388acb979141 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 19 Dec 2018 15:51:25 -0800 Subject: [PATCH] LP1809183: Allow passing template to eg-confirm-dialog Adds an input called dialogBodyTemplate to . This can be useful when you want to pass ICU messages to (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 --- .../src/eg2/src/app/share/dialog/confirm.component.html | 9 ++++++++- Open-ILS/src/eg2/src/app/share/dialog/confirm.component.ts | 1 + .../src/eg2/src/app/staff/sandbox/sandbox.component.html | 12 ++++++++++++ Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts | 13 +++++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/share/dialog/confirm.component.html b/Open-ILS/src/eg2/src/app/share/dialog/confirm.component.html index 21766cac09..60cf3ef971 100644 --- a/Open-ILS/src/eg2/src/app/share/dialog/confirm.component.html +++ b/Open-ILS/src/eg2/src/app/share/dialog/confirm.component.html @@ -7,7 +7,14 @@ - +