Remove success notification while removing subnamespace

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2023-02-10 13:31:51 +03:00
1 parent fa148b309b
commit ff9cbfb78b
1 file changed
+1 -4
@@ -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);
};
},
});