Merge branch '19051-handle-quotes-in-search' into main
[arvados-workbench2.git] / src / store / snackbar / snackbar-actions.ts
index d6d7128e85547cb313f283127b039abbacd340fd..c04371543f34058ca39ee54f091889baf6367675 100644 (file)
@@ -2,12 +2,13 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { unionize, ofType, UnionOf } from "~/common/unionize";
+import { unionize, ofType, UnionOf } from "common/unionize";
 
 export interface SnackbarMessage {
     message: string;
     hideDuration: number;
     kind: SnackbarKind;
+    link?: string;
 }
 
 export enum SnackbarKind {
@@ -18,7 +19,7 @@ export enum SnackbarKind {
 }
 
 export const snackbarActions = unionize({
-    OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number, kind?: SnackbarKind}>(),
+    OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number, kind?: SnackbarKind, link?: string}>(),
     CLOSE_SNACKBAR: ofType<{}>(),
     SHIFT_MESSAGES: ofType<{}>()
 });