X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ea54fb82c3a59ca8a959643f8bec4776635433e0..2a7fd99c212c33a1ec9911f8529fa5afc59a7bb2:/src/store/snackbar/snackbar-actions.ts diff --git a/src/store/snackbar/snackbar-actions.ts b/src/store/snackbar/snackbar-actions.ts index d6d7128e85..7b6f2efd15 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,8 +19,8 @@ export enum SnackbarKind { } export const snackbarActions = unionize({ - OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number, kind?: SnackbarKind}>(), - CLOSE_SNACKBAR: ofType<{}>(), + OPEN_SNACKBAR: ofType<{message: string; hideDuration?: number, kind?: SnackbarKind, link?: string}>(), + CLOSE_SNACKBAR: ofType<{}|null>(), SHIFT_MESSAGES: ofType<{}>() });