X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c324b64f3b26e79b4640b6f0cf55671f1a261bca..8c5147b7367e994e897357766a85e9b7b8e28f24:/src/store/snackbar/snackbar-actions.ts diff --git a/src/store/snackbar/snackbar-actions.ts b/src/store/snackbar/snackbar-actions.ts index d6d7128e..c0437154 100644 --- a/src/store/snackbar/snackbar-actions.ts +++ b/src/store/snackbar/snackbar-actions.ts @@ -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<{}>() });