Merge branch 'master' into 13905-restoring-correct-tree-state-and-panel-item-highligh...
[arvados-workbench2.git] / src / store / dialog / dialog-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { default as unionize, ofType, UnionOf } from "unionize";
6
7 export const dialogActions = unionize({
8     OPEN_DIALOG: ofType<{ id: string, data: any }>(),
9     CLOSE_DIALOG: ofType<{ id: string }>()
10 }, {
11         tag: 'type',
12         value: 'payload'
13     });
14
15 export type DialogAction = UnionOf<typeof dialogActions>;