X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9fed03a84c6ef5234d61f7d62c93f7629da2409d..4b961d16b8f8ef8afbd13697a79fe4684acd0416:/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;