X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/aafa91ce918b23cff556f73e337ad8fe76ed578a..e2502e5af4abc6fa7e84d999df107e0df6cac43b:/src/store/snackbar/snackbar-actions.ts diff --git a/src/store/snackbar/snackbar-actions.ts b/src/store/snackbar/snackbar-actions.ts index dd34895f..d6d7128e 100644 --- a/src/store/snackbar/snackbar-actions.ts +++ b/src/store/snackbar/snackbar-actions.ts @@ -4,16 +4,23 @@ import { unionize, ofType, UnionOf } from "~/common/unionize"; +export interface SnackbarMessage { + message: string; + hideDuration: number; + kind: SnackbarKind; +} + export enum SnackbarKind { - SUCCESS, - ERROR, - INFO, - WARNING + SUCCESS = 1, + ERROR = 2, + INFO = 3, + WARNING = 4 } export const snackbarActions = unionize({ OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number, kind?: SnackbarKind}>(), - CLOSE_SNACKBAR: ofType<{}>() + CLOSE_SNACKBAR: ofType<{}>(), + SHIFT_MESSAGES: ofType<{}>() }); export type SnackbarAction = UnionOf;