X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3d5a1c29aad86476f2e789e1e54cabf8b4605aa2..0a274c87a1412df329469504b3581cc8c7084255:/services/workbench2/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts diff --git a/services/workbench2/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts b/services/workbench2/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts index e2f643b687..5a84d4c573 100644 --- a/services/workbench2/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts +++ b/services/workbench2/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts @@ -3,19 +3,21 @@ // SPDX-License-Identifier: AGPL-3.0 import { ResourceKind } from "models/resource"; -import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set"; +import { MultiSelectMenuActionSet} from "views-components/multiselect-toolbar/ms-menu-actions"; import { msCollectionActionSet } from "views-components/multiselect-toolbar/ms-collection-action-set"; import { msProjectActionSet } from "views-components/multiselect-toolbar/ms-project-action-set"; import { msProcessActionSet } from "views-components/multiselect-toolbar/ms-process-action-set"; +import { msWorkflowActionSet } from "views-components/multiselect-toolbar/ms-workflow-action-set"; -export function findActionByName(name: string, actionSet: ContextMenuActionSet) { +export function findActionByName(name: string, actionSet: MultiSelectMenuActionSet) { return actionSet[0].find(action => action.name === name); } -const { COLLECTION, PROJECT, PROCESS } = ResourceKind; +const { COLLECTION, PROCESS, PROJECT, WORKFLOW } = ResourceKind; -export const kindToActionSet: Record = { +export const kindToActionSet: Record = { [COLLECTION]: msCollectionActionSet, - [PROJECT]: msProjectActionSet, [PROCESS]: msProcessActionSet, + [PROJECT]: msProjectActionSet, + [WORKFLOW]: msWorkflowActionSet, };