Merge branch '14163-trash-loading-flicker'
[arvados-workbench2.git] / src / store / snackbar / snackbar-actions.ts
index dd34895f77c1d7bfa92ffae94e385329d1c2fbef..d6d7128e85547cb313f283127b039abbacd340fd 100644 (file)
@@ -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<typeof snackbarActions>;