[arvados-workbench2] updated: 2.6.0-58-g2309d8a0

git repository hosting git at public.arvados.org
Wed Jul 19 21:07:47 UTC 2023


Summary of changes:
 .../context-menu/action-sets/project-action-set.ts | 54 ++++++++++++----------
 1 file changed, 30 insertions(+), 24 deletions(-)

       via  2309d8a0970d603fa1bd6b23f1fae7f97bb2f7e1 (commit)
      from  e5682f2f1490de87f7727a364c717c06d5f58eee (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 2309d8a0970d603fa1bd6b23f1fae7f97bb2f7e1
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Wed Jul 19 17:07:42 2023 -0400

    15768: all project context menu single actions good Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/views-components/context-menu/action-sets/project-action-set.ts b/src/views-components/context-menu/action-sets/project-action-set.ts
index d778f6b9..74259029 100644
--- a/src/views-components/context-menu/action-sets/project-action-set.ts
+++ b/src/views-components/context-menu/action-sets/project-action-set.ts
@@ -24,18 +24,20 @@ import { freezeProject, unfreezeProject } from 'store/projects/project-lock-acti
 export const toggleFavoriteAction = {
     component: ToggleFavoriteAction,
     name: 'ToggleFavoriteAction',
-    execute: (dispatch, resource) => {
-        dispatch(toggleFavorite(resource)).then(() => {
-            dispatch(favoritePanelActions.REQUEST_ITEMS());
-        });
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) =>
+            dispatch(toggleFavorite(resource)).then(() => {
+                dispatch(favoritePanelActions.REQUEST_ITEMS());
+            })
+        );
     },
 };
 
 export const openInNewTabMenuAction = {
     icon: OpenIcon,
     name: 'Open in new tab',
-    execute: (dispatch, resource) => {
-        dispatch(openInNewTabAction(resource));
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) => dispatch(openInNewTabAction(resource)));
     },
 };
 
@@ -58,60 +60,64 @@ export const viewDetailsAction = {
 export const advancedAction = {
     icon: AdvancedIcon,
     name: 'API Details',
-    execute: (dispatch, resource) => {
-        dispatch(openAdvancedTabDialog(resource.uuid));
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) => dispatch(openAdvancedTabDialog(resource.uuid)));
     },
 };
 
 export const openWith3rdPartyClientAction = {
     icon: FolderSharedIcon,
     name: 'Open with 3rd party client',
-    execute: (dispatch, resource) => {
-        dispatch(openWebDavS3InfoDialog(resource.uuid));
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) => dispatch(openWebDavS3InfoDialog(resource.uuid)));
     },
 };
 
 export const editProjectAction = {
     icon: RenameIcon,
     name: 'Edit project',
-    execute: (dispatch, resource) => {
-        dispatch(openProjectUpdateDialog(resource));
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) => dispatch(openProjectUpdateDialog(resource)));
     },
 };
 
 export const shareAction = {
     icon: ShareIcon,
     name: 'Share',
-    execute: (dispatch, { uuid }) => {
-        dispatch(openSharingDialog(uuid));
+    execute: (dispatch, processes) => {
+        processes.forEach((process) => dispatch(openSharingDialog(process.uuid)));
     },
 };
 
 export const moveToAction = {
     icon: MoveToIcon,
     name: 'Move to',
-    execute: (dispatch, resource) => {
-        dispatch(openMoveProjectDialog(resource));
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) => {
+            dispatch(openMoveProjectDialog(resource));
+        });
     },
 };
 
 export const toggleTrashAction = {
     component: ToggleTrashAction,
     name: 'ToggleTrashAction',
-    execute: (dispatch, resource) => {
-        dispatch(toggleProjectTrashed(resource.uuid, resource.ownerUuid, resource.isTrashed!!));
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) => dispatch(toggleProjectTrashed(resource.uuid, resource.ownerUuid, resource.isTrashed!!)));
     },
 };
 
 export const freezeProjectAction = {
     component: ToggleLockAction,
     name: 'ToggleLockAction',
-    execute: (dispatch, resource) => {
-        if (resource.isFrozen) {
-            dispatch(unfreezeProject(resource.uuid));
-        } else {
-            dispatch(freezeProject(resource.uuid));
-        }
+    execute: (dispatch, resources) => {
+        resources.forEach((resource) => {
+            if (resource.isFrozen) {
+                dispatch(unfreezeProject(resource.uuid));
+            } else {
+                dispatch(freezeProject(resource.uuid));
+            }
+        });
     },
 };
 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list