projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
21128: dynamic menu types created Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa...
[arvados-workbench2.git]
/
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 e2f643b6870e76d8f9e56b4e77ce49e679f29f80..48c3af3c2c7c0f4e09f77364f3b23f98dfdfec2b 100644
(file)
--- 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";
// SPDX-License-Identifier: AGPL-3.0
import { ResourceKind } from "models/resource";
-import { ContextMenuActionSet } from "views-components/context-menu/context-menu-action-set";
+import {
Dynamic
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";
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:
Dynamic
ContextMenuActionSet) {
return actionSet[0].find(action => action.name === name);
}
const { COLLECTION, PROJECT, PROCESS } = ResourceKind;
return actionSet[0].find(action => action.name === name);
}
const { COLLECTION, PROJECT, PROCESS } = ResourceKind;
-export const kindToActionSet: Record<string, ContextMenuActionSet> = {
+export const kindToActionSet: Record<string,
Dynamic
ContextMenuActionSet> = {
[COLLECTION]: msCollectionActionSet,
[PROJECT]: msProjectActionSet,
[PROCESS]: msProcessActionSet,
[COLLECTION]: msCollectionActionSet,
[PROJECT]: msProjectActionSet,
[PROCESS]: msProcessActionSet,