X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/12a7331edc4ca08c12f0d525df1a979d10cd1168..d842372e4f45ee06315e511529e65ae1d3f319a0:/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 772d89dfed..34f1303717 100644 --- a/src/store/tree-picker/tree-picker-actions.ts +++ b/src/store/tree-picker/tree-picker-actions.ts @@ -3,14 +3,15 @@ // SPDX-License-Identifier: AGPL-3.0 import { default as unionize, ofType, UnionOf } from "unionize"; -import { TreeNode } from "../../models/tree"; + 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 }>() + 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 }>(), + RESET_TREE_PICKER: ofType<{ pickerId: string }>() }, { tag: 'type', value: 'payload'