From ff9cbfb78bb03025e4b4a4ad062b6a7cb5f1716e Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Fri, 10 Feb 2023 13:31:51 +0300 Subject: [PATCH] Remove success notification while removing subnamespace Signed-off-by: Alex Andreev --- .../components/+namespaces/remove-subnamespace.injectable.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/core/src/renderer/components/+namespaces/remove-subnamespace.injectable.ts b/packages/core/src/renderer/components/+namespaces/remove-subnamespace.injectable.ts index 81cf28da33..591547ae93 100644 --- a/packages/core/src/renderer/components/+namespaces/remove-subnamespace.injectable.ts +++ b/packages/core/src/renderer/components/+namespaces/remove-subnamespace.injectable.ts @@ -15,7 +15,6 @@ const removeSubnamespaceInjectable = getInjectable({ const crdStore = di.inject(customResourceDefinitionStoreInjectable); const apiManager = di.inject(apiManagerInjectable); const showErrorNotification = di.inject(showErrorNotificationInjectable); - const showSuccessNotification = di.inject(showSuccessNotificationInjectable); /** * Removing subnamespace controlled by hierarchical namespace controller by deleting @@ -40,9 +39,7 @@ const removeSubnamespaceInjectable = getInjectable({ return; } - await store?.remove(anchor); - - showSuccessNotification(`Subnamespace ${subnamespaceName} removed`); + store?.remove(anchor); }; }, });