Fix test passing
[arvados-workbench2.git] / src / store / dialog / dialog-actions.ts
index df4418f41363b32ba92e75b12c5a07547ee9b06d..ce01a50d6919285190974570e254e14841989061 100644 (file)
@@ -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<typeof dialogActions>;