[arvados-workbench2] updated: 2.6.0-90-g26cb1fd0

git repository hosting git at public.arvados.org
Fri Sep 8 16:58:16 UTC 2023


Summary of changes:
 src/store/multiselect/multiselect-actions.tsx | 14 ++++++++++----
 src/store/multiselect/multiselect-reducer.tsx |  4 ++--
 src/store/workbench/workbench-actions.ts      |  4 ++--
 3 files changed, 14 insertions(+), 8 deletions(-)

       via  26cb1fd09826e6460febda92e1b06c3a05c90b28 (commit)
      from  7888c50a75bdadd042548828ba7da7f2d94e6f6c (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 26cb1fd09826e6460febda92e1b06c3a05c90b28
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Fri Sep 8 12:58:12 2023 -0400

    15768: created action set for ms actions Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/src/store/multiselect/multiselect-actions.tsx b/src/store/multiselect/multiselect-actions.tsx
index 91d23fff..1c329a9e 100644
--- a/src/store/multiselect/multiselect-actions.tsx
+++ b/src/store/multiselect/multiselect-actions.tsx
@@ -4,7 +4,7 @@
 
 import { TCheckedList } from "components/data-table/data-table";
 
-export const multiselectActions = {
+export const multiselectActionContants = {
     TOGGLE_VISIBLITY: "TOGGLE_VISIBLITY",
     SET_CHECKEDLIST: "SET_CHECKEDLIST",
     DESELECT_ONE: "DESELECT_ONE",
@@ -12,18 +12,24 @@ export const multiselectActions = {
 
 export const toggleMSToolbar = (isVisible: boolean) => {
     return dispatch => {
-        dispatch({ type: multiselectActions.TOGGLE_VISIBLITY, payload: isVisible });
+        dispatch({ type: multiselectActionContants.TOGGLE_VISIBLITY, payload: isVisible });
     };
 };
 
 export const setCheckedListOnStore = (checkedList: TCheckedList) => {
     return dispatch => {
-        dispatch({ type: multiselectActions.SET_CHECKEDLIST, payload: checkedList });
+        dispatch({ type: multiselectActionContants.SET_CHECKEDLIST, payload: checkedList });
     };
 };
 
 export const deselectOne = (uuid: string) => {
     return dispatch => {
-        dispatch({ type: multiselectActions.DESELECT_ONE, payload: uuid });
+        dispatch({ type: multiselectActionContants.DESELECT_ONE, payload: uuid });
     };
 };
+
+export const multiselectActions = {
+    toggleMSToolbar,
+    setCheckedListOnStore,
+    deselectOne,
+};
diff --git a/src/store/multiselect/multiselect-reducer.tsx b/src/store/multiselect/multiselect-reducer.tsx
index b31b451d..75c4b1f9 100644
--- a/src/store/multiselect/multiselect-reducer.tsx
+++ b/src/store/multiselect/multiselect-reducer.tsx
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { multiselectActions } from "./multiselect-actions";
+import { multiselectActionContants } from "./multiselect-actions";
 import { TCheckedList } from "components/data-table/data-table";
 
 type MultiselectToolbarState = {
@@ -15,7 +15,7 @@ const multiselectToolbarInitialState = {
     checkedList: {},
 };
 
-const { TOGGLE_VISIBLITY, SET_CHECKEDLIST, DESELECT_ONE } = multiselectActions;
+const { TOGGLE_VISIBLITY, SET_CHECKEDLIST, DESELECT_ONE } = multiselectActionContants;
 
 export const multiselectReducer = (state: MultiselectToolbarState = multiselectToolbarInitialState, action) => {
     switch (action.type) {
diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts
index f2b294ec..1446e5d8 100644
--- a/src/store/workbench/workbench-actions.ts
+++ b/src/store/workbench/workbench-actions.ts
@@ -101,7 +101,7 @@ import { allProcessesPanelColumns } from "views/all-processes-panel/all-processe
 import { AdminMenuIcon } from "components/icon/icon";
 import { userProfileGroupsColumns } from "views/user-profile-panel/user-profile-panel-root";
 import { selectedToArray, selectedToKindSet } from "components/multiselect-toolbar/MultiselectToolbar";
-import { deselectOne } from "store/multiselect/multiselect-actions";
+import { multiselectActions } from "store/multiselect/multiselect-actions";
 
 export const WORKBENCH_LOADING_SCREEN = "workbenchLoadingScreen";
 
@@ -457,7 +457,7 @@ export const copyCollection = (data: CopyFormDialogData) => async (dispatch: Dis
                         link: collection.ownerUuid,
                     })
                 );
-                dispatch<any>(deselectOne(copyToProject.uuid));
+                dispatch<any>(multiselectActions.deselectOne(copyToProject.uuid));
             }
         } catch (e) {
             dispatch(

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list