X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/4f09ca588d03cc6e1be52190f902c21a0ae2a850..df60d34060e3031bdec0ea58c25bcff99d4d3817:/src/store/collection-panel/collection-panel-action.ts diff --git a/src/store/collection-panel/collection-panel-action.ts b/src/store/collection-panel/collection-panel-action.ts index 3b3e34c2..919cd908 100644 --- a/src/store/collection-panel/collection-panel-action.ts +++ b/src/store/collection-panel/collection-panel-action.ts @@ -46,7 +46,7 @@ export const createCollectionTag = (data: TagProperty) => item.properties[data.key] = data.value; const updatedCollection = await services.collectionService.update(uuid, item); dispatch(resourcesActions.SET_RESOURCES([updatedCollection])); - dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Tag has been successfully added.", hideDuration: 2000 })); + dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Tag has been successfully added.", hideDuration: 2000, kind: SnackbarKind.SUCCESS })); return updatedCollection; } return; @@ -74,7 +74,7 @@ export const deleteCollectionTag = (key: string) => delete item.properties[key]; const updatedCollection = await services.collectionService.update(uuid, item); dispatch(resourcesActions.SET_RESOURCES([updatedCollection])); - dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Tag has been successfully deleted.", hideDuration: 2000 })); + dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Tag has been successfully deleted.", hideDuration: 2000, kind: SnackbarKind.SUCCESS })); return updatedCollection; } return;