[arvados-workbench2] updated: 2.7.0-219-g84d3e731

git repository hosting git at public.arvados.org
Mon Nov 27 16:44:31 UTC 2023


Summary of changes:
 src/components/multiselect-toolbar/ms-toolbar-action-filters.ts | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

       via  84d3e7312bb90b5f45640e8b0e4f434ed7dc6738 (commit)
      from  34f3d66c75012eacc5e2ee5124168fab73dbb238 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 84d3e7312bb90b5f45640e8b0e4f434ed7dc6738
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Mon Nov 27 11:44:28 2023 -0500

    21128: added optional allActionNames filter Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts b/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts
index f921cd1f..9ad80f7d 100644
--- a/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts
+++ b/src/components/multiselect-toolbar/ms-toolbar-action-filters.ts
@@ -31,8 +31,10 @@ const {
     VIEW_DETAILS,
 } = MultiSelectMenuActionNames;
 
-//these sets govern what actions are on the ms toolbar for each resource kind
-const collectionMSActionsFilter = new Set([MAKE_A_COPY, MOVE_TO, ADD_TO_TRASH]);
+const allActionNames = (actionSet: MultiSelectMenuActionSet): Set<string> => new Set(actionSet[0].map((action) => action.name));
+
+//use allActionNames or filter manually below
+
 const processResourceMSActionsFilter = new Set([MOVE_TO, REMOVE]);
 const projectMSActionsFilter = new Set([
     ADD_TO_FAVORITES,
@@ -56,7 +58,7 @@ const workflowMSActionFilter = new Set([OPEN_IN_NEW_TAB, COPY_TO_CLIPBOARD, VIEW
 const { COLLECTION, PROCESS, PROJECT, WORKFLOW } = ResourceKind;
 
 export const multiselectActionsFilters: TMultiselectActionsFilters = {
-    [COLLECTION]: [msCollectionActionSet, collectionMSActionsFilter],
+    [COLLECTION]: [msCollectionActionSet, allActionNames(msCollectionActionSet)],
     [PROCESS]: [msProcessActionSet, processResourceMSActionsFilter],
     [PROJECT]: [msProjectActionSet, projectMSActionsFilter],
     [WORKFLOW]: [msWorkflowActionSet, workflowMSActionFilter]

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list