From 8711bfb8314db8c8222de28dcbfaf8472e345ee8 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Mon, 5 Feb 2018 09:43:45 -0800 Subject: [PATCH] implement confirmation dialog --- .../dialog/ConfirmationDialog.html | 61 +++++++++++++++++++ .../{status => dialog}/ImageDialog.html | 2 +- .../_components/{ => dialog}/ModalDialog.html | 17 ++++-- .../{status => dialog}/VideoDialog.html | 2 +- .../dialog/showConfirmationDialog.js | 11 ++++ .../dialog}/showImageDialog.js | 2 +- .../dialog}/showVideoDialog.js | 2 +- routes/_components/status/Media.html | 4 +- routes/settings/instances/[instanceName].html | 9 ++- 9 files changed, 98 insertions(+), 12 deletions(-) create mode 100644 routes/_components/dialog/ConfirmationDialog.html rename routes/_components/{status => dialog}/ImageDialog.html (93%) rename routes/_components/{ => dialog}/ModalDialog.html (84%) rename routes/_components/{status => dialog}/VideoDialog.html (90%) create mode 100644 routes/_components/dialog/showConfirmationDialog.js rename routes/{_utils => _components/dialog}/showImageDialog.js (83%) rename routes/{_utils => _components/dialog}/showVideoDialog.js (82%) diff --git a/routes/_components/dialog/ConfirmationDialog.html b/routes/_components/dialog/ConfirmationDialog.html new file mode 100644 index 0000000..35bcfb7 --- /dev/null +++ b/routes/_components/dialog/ConfirmationDialog.html @@ -0,0 +1,61 @@ + +
+

+ {{text}} +

+
+ + +
+
+
+ + \ No newline at end of file diff --git a/routes/_components/status/ImageDialog.html b/routes/_components/dialog/ImageDialog.html similarity index 93% rename from routes/_components/status/ImageDialog.html rename to routes/_components/dialog/ImageDialog.html index 9539132..ff7f257 100644 --- a/routes/_components/status/ImageDialog.html +++ b/routes/_components/dialog/ImageDialog.html @@ -29,7 +29,7 @@ }