X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/dd89200ad6fdbfa337fdbab5f54def8712c6746c..6ff11e5f5dba8e02a176bbe9455ba916e8990028:/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 e3bebe1c85..e1e8d5c620 100644 --- a/src/store/tree-picker/tree-picker-actions.ts +++ b/src/store/tree-picker/tree-picker-actions.ts @@ -3,13 +3,14 @@ // SPDX-License-Identifier: AGPL-3.0 import { default as unionize, ofType, UnionOf } from "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 }>() + 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 }>() }, { tag: 'type', value: 'payload'