X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2a7fd99c212c33a1ec9911f8529fa5afc59a7bb2..e10e24d713e5c31cbc34efca458f5718eb6eb000:/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 609f273c..e2f643b6 100644 --- a/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts +++ b/src/components/multiselect-toolbar/ms-kind-action-differentiator.ts @@ -2,20 +2,20 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { ResourceKind } from 'models/resource'; -import { ContextMenuActionSet } from 'views-components/context-menu/context-menu-action-set'; -import { collectionActionSet } from 'views-components/context-menu/action-sets/collection-action-set'; -import { projectActionSet } from 'views-components/context-menu/action-sets/project-action-set'; -import { processResourceActionSet } from 'views-components/context-menu/action-sets/process-resource-action-set'; +import { ResourceKind } from "models/resource"; +import { ContextMenuActionSet } from "views-components/context-menu/context-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) { - return actionSet[0].find((action) => action.name === name); + return actionSet[0].find(action => action.name === name); } const { COLLECTION, PROJECT, PROCESS } = ResourceKind; export const kindToActionSet: Record = { - [COLLECTION]: collectionActionSet, - [PROJECT]: projectActionSet, - [PROCESS]: processResourceActionSet, + [COLLECTION]: msCollectionActionSet, + [PROJECT]: msProjectActionSet, + [PROCESS]: msProcessActionSet, };