X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c11055f2d6ce8385088bc221eab1175e31777ec0..1a99655f02501ae941aa070202393813da32779d:/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 e3bebe1c..5b04389a 100644 --- a/src/store/tree-picker/tree-picker-actions.ts +++ b/src/store/tree-picker/tree-picker-actions.ts @@ -2,17 +2,17 @@ // // 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"; export const treePickerActions = unionize({ - LOAD_TREE_PICKER_NODE: ofType<{ id: string }>(), - LOAD_TREE_PICKER_NODE_SUCCESS: ofType<{ id: string, nodes: Array }>(), - TOGGLE_TREE_PICKER_NODE_COLLAPSE: ofType<{ id: string }>(), - TOGGLE_TREE_PICKER_NODE_SELECT: ofType<{ id: string }>() -}, { - tag: 'type', - value: 'payload' - }); + LOAD_TREE_PICKER_NODE: ofType<{ nodeId: string, pickerId: string }>(), + 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 }>() +}); export type TreePickerAction = UnionOf;