X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c0afd448c39a41d229612afe47643aed7a2cf5dd..b1a6da4a288560a87e0e38ad2fd73fb227e3fc66:/src/store/dialog/dialog-actions.ts diff --git a/src/store/dialog/dialog-actions.ts b/src/store/dialog/dialog-actions.ts index df4418f4..ce01a50d 100644 --- a/src/store/dialog/dialog-actions.ts +++ b/src/store/dialog/dialog-actions.ts @@ -2,14 +2,12 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { default as unionize, ofType, UnionOf } from "unionize"; +import { unionize, ofType, UnionOf } from "~/common/unionize"; export const dialogActions = unionize({ OPEN_DIALOG: ofType<{ id: string, data: any }>(), - CLOSE_DIALOG: ofType<{ id: string }>() -}, { - tag: 'type', - value: 'payload' - }); + CLOSE_DIALOG: ofType<{ id: string }>(), + CLOSE_ALL_DIALOGS: ofType<{}>() +}); export type DialogAction = UnionOf;