X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b12a180cf035192be3e22dfa5a2200d4969ce51a..33f356b44d2935a5b3f3d233c3b635e8e7b50085:/src/store/tree-picker/tree-picker-actions.ts diff --git a/src/store/tree-picker/tree-picker-actions.ts b/src/store/tree-picker/tree-picker-actions.ts index 34f13037..5b04389a 100644 --- a/src/store/tree-picker/tree-picker-actions.ts +++ b/src/store/tree-picker/tree-picker-actions.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { default as unionize, ofType, UnionOf } from "unionize"; +import { unionize, ofType, UnionOf } from "~/common/unionize"; import { TreePickerNode } from "./tree-picker"; @@ -11,10 +11,8 @@ export const treePickerActions = unionize({ LOAD_TREE_PICKER_NODE_SUCCESS: ofType<{ nodeId: string, nodes: Array, pickerId: string }>(), TOGGLE_TREE_PICKER_NODE_COLLAPSE: ofType<{ nodeId: string, pickerId: string }>(), TOGGLE_TREE_PICKER_NODE_SELECT: ofType<{ nodeId: string, pickerId: string }>(), + EXPAND_TREE_PICKER_NODES: ofType<{ nodeIds: string[], pickerId: string }>(), RESET_TREE_PICKER: ofType<{ pickerId: string }>() -}, { - tag: 'type', - value: 'payload' - }); +}); export type TreePickerAction = UnionOf;