From 51f907b08126315949224c92c70b4f341ea84e12 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Tue, 13 Sep 2022 13:57:48 +0300 Subject: [PATCH] Add toast-container --- app/components/toast.hbs | 45 +++++++------- app/components/toast.js | 13 ++++ app/components/toasts-container.hbs | 7 +++ app/components/toasts-container.js | 6 ++ app/controllers/admin/indexes/item/edit.js | 8 +-- app/services/toasts.js | 59 ++++++++++++++++++- app/templates/admin/indexes/item/edit.hbs | 2 +- app/templates/application.hbs | 2 + .../components/toasts-container-test.js | 26 ++++++++ 9 files changed, 138 insertions(+), 30 deletions(-) create mode 100644 app/components/toasts-container.hbs create mode 100644 app/components/toasts-container.js create mode 100644 tests/integration/components/toasts-container-test.js diff --git a/app/components/toast.hbs b/app/components/toast.hbs index 5888e94..b33c041 100644 --- a/app/components/toast.hbs +++ b/app/components/toast.hbs @@ -1,25 +1,22 @@ -{{#in-element this.toasts.destinationElement}} -