From 97fc50d2cdc20450c5cd5c6c7b9a1f2ad2d82ffe Mon Sep 17 00:00:00 2001 From: Atanas Yonkov Date: Thu, 22 Dec 2022 12:16:41 +0200 Subject: [PATCH] Add notification message on successful namespace delete --- client/web/compose/src/views/Namespace/Edit.vue | 5 ++++- locale/en/corteza-webapp-compose/notification.yaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/client/web/compose/src/views/Namespace/Edit.vue b/client/web/compose/src/views/Namespace/Edit.vue index af0e95334..ef0a686c1 100644 --- a/client/web/compose/src/views/Namespace/Edit.vue +++ b/client/web/compose/src/views/Namespace/Edit.vue @@ -568,9 +568,12 @@ export default { return this.$SystemAPI.applicationDelete({ applicationID }) } }) + .then(() => { + this.$router.push({ name: 'namespace.manage' }) + this.toastSuccess(this.$t('notification:namespace.deleted')) + }) .finally(() => { this.processing = false - this.$router.push({ name: 'namespace.manage' }) }) }, diff --git a/locale/en/corteza-webapp-compose/notification.yaml b/locale/en/corteza-webapp-compose/notification.yaml index 811895f78..303865425 100644 --- a/locale/en/corteza-webapp-compose/notification.yaml +++ b/locale/en/corteza-webapp-compose/notification.yaml @@ -59,6 +59,7 @@ namespace: saveFailed: Could not save namespace application assetUploadFailed: Could not upload attached assets createFailed: Could not create namespace + deleted: Namespace deleted deleteFailed: Could not delete this namespace disabled: Namespace disabled - redirecting saveFailed: Could not save this namespace