X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/5e8a5a1c42226e0dd3aceaf4825d870a3786c5d1..aafa91ce918b23cff556f73e337ad8fe76ed578a:/src/store/snackbar/snackbar-actions.ts diff --git a/src/store/snackbar/snackbar-actions.ts b/src/store/snackbar/snackbar-actions.ts index 55d9f3a8..dd34895f 100644 --- a/src/store/snackbar/snackbar-actions.ts +++ b/src/store/snackbar/snackbar-actions.ts @@ -4,8 +4,15 @@ import { unionize, ofType, UnionOf } from "~/common/unionize"; +export enum SnackbarKind { + SUCCESS, + ERROR, + INFO, + WARNING +} + export const snackbarActions = unionize({ - OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number}>(), + OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number, kind?: SnackbarKind}>(), CLOSE_SNACKBAR: ofType<{}>() });