[arvados-workbench2] updated: 2.7.0-209-g4a4da224

git repository hosting git at public.arvados.org
Thu Nov 16 19:46:46 UTC 2023


Summary of changes:
 src/store/details-panel/details-panel-action.ts | 2 ++
 src/store/multiselect/multiselect-actions.tsx   | 8 ++++++++
 src/store/multiselect/multiselect-reducer.tsx   | 4 +++-
 3 files changed, 13 insertions(+), 1 deletion(-)

       via  4a4da2249d80ed4116f534689684abff61ee2cd9 (commit)
      from  964ad5378b3cb1a3f02b8c89afb13340e69337a1 (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 4a4da2249d80ed4116f534689684abff61ee2cd9
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Thu Nov 16 14:46:41 2023 -0500

    21128: clicking row now checks box Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/store/details-panel/details-panel-action.ts b/src/store/details-panel/details-panel-action.ts
index b708ad62..ef5f6095 100644
--- a/src/store/details-panel/details-panel-action.ts
+++ b/src/store/details-panel/details-panel-action.ts
@@ -13,6 +13,7 @@ import { FilterBuilder } from 'services/api/filter-builder';
 import { OrderBuilder } from 'services/api/order-builder';
 import { CollectionResource } from 'models/collection';
 import { extractUuidKind, ResourceKind } from 'models/resource';
+import { selectOne } from 'store/multiselect/multiselect-actions';
 
 export const SLIDE_TIMEOUT = 500;
 
@@ -36,6 +37,7 @@ export const loadDetailsPanel = (uuid: string) =>
                     break;
             }
         }
+        dispatch<any>(selectOne(uuid))
         dispatch(detailsPanelActions.LOAD_DETAILS_PANEL(uuid));
     };
 
diff --git a/src/store/multiselect/multiselect-actions.tsx b/src/store/multiselect/multiselect-actions.tsx
index 1c329a9e..c5ad4948 100644
--- a/src/store/multiselect/multiselect-actions.tsx
+++ b/src/store/multiselect/multiselect-actions.tsx
@@ -7,6 +7,7 @@ import { TCheckedList } from "components/data-table/data-table";
 export const multiselectActionContants = {
     TOGGLE_VISIBLITY: "TOGGLE_VISIBLITY",
     SET_CHECKEDLIST: "SET_CHECKEDLIST",
+    SELECT_ONE: 'SELECT_ONE',
     DESELECT_ONE: "DESELECT_ONE",
 };
 
@@ -22,6 +23,12 @@ export const setCheckedListOnStore = (checkedList: TCheckedList) => {
     };
 };
 
+export const selectOne = (uuid: string) => {
+    return dispatch => {
+        dispatch({ type: multiselectActionContants.SELECT_ONE, payload: uuid });
+    };
+};
+
 export const deselectOne = (uuid: string) => {
     return dispatch => {
         dispatch({ type: multiselectActionContants.DESELECT_ONE, payload: uuid });
@@ -31,5 +38,6 @@ export const deselectOne = (uuid: string) => {
 export const multiselectActions = {
     toggleMSToolbar,
     setCheckedListOnStore,
+    selectOne,
     deselectOne,
 };
diff --git a/src/store/multiselect/multiselect-reducer.tsx b/src/store/multiselect/multiselect-reducer.tsx
index 75c4b1f9..8b70cecc 100644
--- a/src/store/multiselect/multiselect-reducer.tsx
+++ b/src/store/multiselect/multiselect-reducer.tsx
@@ -15,7 +15,7 @@ const multiselectToolbarInitialState = {
     checkedList: {},
 };
 
-const { TOGGLE_VISIBLITY, SET_CHECKEDLIST, DESELECT_ONE } = multiselectActionContants;
+const { TOGGLE_VISIBLITY, SET_CHECKEDLIST, SELECT_ONE, DESELECT_ONE } = multiselectActionContants;
 
 export const multiselectReducer = (state: MultiselectToolbarState = multiselectToolbarInitialState, action) => {
     switch (action.type) {
@@ -23,6 +23,8 @@ export const multiselectReducer = (state: MultiselectToolbarState = multiselectT
             return { ...state, isVisible: action.payload };
         case SET_CHECKEDLIST:
             return { ...state, checkedList: action.payload };
+        case SELECT_ONE:
+            return { ...state, checkedList: { ...state.checkedList, [action.payload]: true } };
         case DESELECT_ONE:
             return { ...state, checkedList: { ...state.checkedList, [action.payload]: false } };
         default:

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list