[arvados-workbench2] updated: 2.6.0-56-g462f912b

git repository hosting git at public.arvados.org
Wed Jul 19 15:14:31 UTC 2023


Summary of changes:
 src/components/multiselectToolbar/MultiselectToolbar.tsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

       via  462f912b233957d9c944063d1f7872f0d32c7e13 (commit)
      from  859bae14d31fe063ed1204be7300083b3216de60 (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 462f912b233957d9c944063d1f7872f0d32c7e13
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Wed Jul 19 11:14:28 2023 -0400

    15768: back to previous multiselect state, but now with arrays Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/components/multiselectToolbar/MultiselectToolbar.tsx b/src/components/multiselectToolbar/MultiselectToolbar.tsx
index 1092cf98..0ef7240b 100644
--- a/src/components/multiselectToolbar/MultiselectToolbar.tsx
+++ b/src/components/multiselectToolbar/MultiselectToolbar.tsx
@@ -174,16 +174,19 @@ function mapDispatchToProps(dispatch: Dispatch) {
         //     });
         // },
         executeMulti: (selectedAction: ContextMenuAction, checkedList: TCheckedList, resources: ResourcesState) => {
-            console.log(groupByKind(checkedList, resources));
             // selectedToArray(checkedList).forEach((uuid) => {
             //     const resource = getResource(uuid)(resources);
             //     executeSpecific(dispatch, action.name, resource);
             // });
             const kindGroups = groupByKind(checkedList, resources);
+            // console.log(kindGroups);
             for (const kind in kindGroups) {
                 const actionSet = kindToActionSet[kind];
                 const action = findActionByName(selectedAction.name as string, actionSet);
-                // if (action) action.execute(dispatch, kindGroups[kind]);
+                console.log(action?.execute);
+                console.log(kindGroups[kind]);
+
+                if (action) action.execute(dispatch, kindGroups[kind]);
                 // if (action && action.name === 'ToggleTrashAction') action.execute(dispatch, kindGroups[kind]);
             }
         },
@@ -202,7 +205,8 @@ function executeSpecific(dispatch: Dispatch, actionName, resource) {
     if (action) action.execute(dispatch, resource);
 }
 
-function groupByKind(checkedList: TCheckedList, resources: ResourcesState): Record<string, Array<Resource | undefined>> {
+function groupByKind(checkedList: TCheckedList, resources: ResourcesState): Record<string, ContextMenuResource[]> {
+    // function groupByKind(checkedList: TCheckedList, resources: ResourcesState): Record<string, Array<Resource | undefined>> {
     const result = {};
     selectedToArray(checkedList).forEach((uuid) => {
         const resource = getResource(uuid)(resources) as Resource;

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list