mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove success notification while removing subnamespace
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
fa148b309b
commit
ff9cbfb78b
@ -15,7 +15,6 @@ const removeSubnamespaceInjectable = getInjectable({
|
|||||||
const crdStore = di.inject(customResourceDefinitionStoreInjectable);
|
const crdStore = di.inject(customResourceDefinitionStoreInjectable);
|
||||||
const apiManager = di.inject(apiManagerInjectable);
|
const apiManager = di.inject(apiManagerInjectable);
|
||||||
const showErrorNotification = di.inject(showErrorNotificationInjectable);
|
const showErrorNotification = di.inject(showErrorNotificationInjectable);
|
||||||
const showSuccessNotification = di.inject(showSuccessNotificationInjectable);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removing subnamespace controlled by hierarchical namespace controller by deleting
|
* Removing subnamespace controlled by hierarchical namespace controller by deleting
|
||||||
@ -40,9 +39,7 @@ const removeSubnamespaceInjectable = getInjectable({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await store?.remove(anchor);
|
store?.remove(anchor);
|
||||||
|
|
||||||
showSuccessNotification(`Subnamespace ${subnamespaceName} removed`);
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user