From 7744b086d7f71b67f436c0f617d262b2ae91c8f6 Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 23 Dec 2020 22:43:04 +0100 Subject: [PATCH] Adding toast notification --- .../archiva-web/src/app/app.component.html | 1 + .../src/app/model/app-notification.ts | 55 +++++++++++++ .../src/app/model/error-message.ts | 10 +++ .../manage-users-add.component.html | 22 ++++-- .../manage-users-add.component.ts | 33 ++++++-- .../users/manage-users-base.component.ts | 10 +++ .../src/app/modules/shared/shared.module.ts | 12 ++- .../shared/toast/toast.component.spec.ts | 43 +++++++++++ .../modules/shared/toast/toast.component.ts | 61 +++++++++++++++ .../src/app/services/toast.service.spec.ts | 34 ++++++++ .../src/app/services/toast.service.ts | 77 +++++++++++++++++++ .../main/archiva-web/src/assets/i18n/en.json | 3 +- 12 files changed, 343 insertions(+), 18 deletions(-) create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/model/app-notification.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/toast/toast.component.spec.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/toast/toast.component.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/services/toast.service.spec.ts create mode 100644 archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/services/toast.service.ts diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html index e1d9bb0c9..c49a00ec8 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/app.component.html @@ -35,6 +35,7 @@ +
@@ -87,16 +90,21 @@
-