File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import {notify} from 'src/shared/actions/notifications'
2626import {
2727 notebookCreateFail ,
2828 notebookDeleteFail ,
29+ notebookDeleteSuccess ,
2930} from 'src/shared/copy/notifications'
3031import { incrementCloneName } from 'src/utils/naming'
3132
@@ -261,6 +262,7 @@ export const FlowListProvider: FC = ({children}) => {
261262 }
262263 try {
263264 await deleteAPI ( { id} )
265+ dispatch ( notify ( notebookDeleteSuccess ( ) ) )
264266 } catch ( error ) {
265267 dispatch ( notify ( notebookDeleteFail ( ) ) )
266268 }
Original file line number Diff line number Diff line change @@ -1235,6 +1235,11 @@ export const notebookDeleteFail = (): Notification => ({
12351235 message : `Failed to delete Notebook, please try again.` ,
12361236} )
12371237
1238+ export const notebookDeleteSuccess = ( ) : Notification => ( {
1239+ ...defaultSuccessNotification ,
1240+ message : 'Notebook was deleted successfully' ,
1241+ } )
1242+
12381243export const csvUploaderErrorNotification = (
12391244 message : string
12401245) : Notification => ( {
You can’t perform that action at this time.
0 commit comments