X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/e10e24d713e5c31cbc34efca458f5718eb6eb000..bead3b2896eaaceb9b9a3c805d40e8048c93b218:/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts diff --git a/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts b/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts index e2f643b6..74593ac7 100644 --- a/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts +++ b/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts @@ -3,18 +3,18 @@ // 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-action-set"; 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"; -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; -export const kindToActionSet: Record = { +export const kindToActionSet: Record = { [COLLECTION]: msCollectionActionSet, [PROJECT]: msProjectActionSet, [PROCESS]: msProcessActionSet,