[arvados] updated: 2.7.0-5801-g25eb38e9a9
git repository hosting
git at public.arvados.org
Thu Jan 11 18:30:27 UTC 2024
Summary of changes:
.../src/store/multiselect/multiselect-actions.tsx | 28 +++++++---------------
.../src/store/multiselect/multiselect-reducer.tsx | 6 ++---
.../src/store/workbench/workbench-actions.ts | 4 ++--
3 files changed, 14 insertions(+), 24 deletions(-)
via 25eb38e9a93228f349046d36e23b735c164f5b99 (commit)
from 6b9ba1b76b56f2494d6ddbbf8d2f72d0b872fe09 (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 25eb38e9a93228f349046d36e23b735c164f5b99
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Thu Jan 11 13:30:22 2024 -0500
21317: cleanup Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/store/multiselect/multiselect-actions.tsx b/services/workbench2/src/store/multiselect/multiselect-actions.tsx
index a246ddbcc0..966920a585 100644
--- a/services/workbench2/src/store/multiselect/multiselect-actions.tsx
+++ b/services/workbench2/src/store/multiselect/multiselect-actions.tsx
@@ -12,7 +12,7 @@ import { ServiceRepository } from "services/services";
import { SnackbarKind } from "store/snackbar/snackbar-actions";
import { ContextMenuResource } from 'store/context-menu/context-menu-actions';
-export const multiselectActionContants = {
+export const multiselectActionConstants = {
TOGGLE_VISIBLITY: "TOGGLE_VISIBLITY",
SET_CHECKEDLIST: "SET_CHECKEDLIST",
SELECT_ONE: 'SELECT_ONE',
@@ -46,60 +46,50 @@ export const isExactlyOneSelected = (checkedList: TCheckedList) => {
export const toggleMSToolbar = (isVisible: boolean) => {
return dispatch => {
- dispatch({ type: multiselectActionContants.TOGGLE_VISIBLITY, payload: isVisible });
+ dispatch({ type: multiselectActionConstants.TOGGLE_VISIBLITY, payload: isVisible });
};
};
export const setCheckedListOnStore = (checkedList: TCheckedList) => {
return dispatch => {
dispatch(setSelectedUuid(isExactlyOneSelected(checkedList)))
- dispatch({ type: multiselectActionContants.SET_CHECKEDLIST, payload: checkedList });
+ dispatch({ type: multiselectActionConstants.SET_CHECKEDLIST, payload: checkedList });
};
};
export const selectOne = (uuid: string) => {
return dispatch => {
- dispatch({ type: multiselectActionContants.SELECT_ONE, payload: uuid });
+ dispatch({ type: multiselectActionConstants.SELECT_ONE, payload: uuid });
};
};
export const deselectOne = (uuid: string) => {
return dispatch => {
- dispatch({ type: multiselectActionContants.DESELECT_ONE, payload: uuid });
+ dispatch({ type: multiselectActionConstants.DESELECT_ONE, payload: uuid });
};
};
export const toggleOne = (uuid: string) => {
return dispatch => {
- dispatch({ type: multiselectActionContants.TOGGLE_ONE, payload: uuid });
+ dispatch({ type: multiselectActionConstants.TOGGLE_ONE, payload: uuid });
};
};
export const setSelectedUuid = (uuid: string | null) => {
return dispatch => {
- dispatch({ type: multiselectActionContants.SET_SELECTED_UUID, payload: uuid });
+ dispatch({ type: multiselectActionConstants.SET_SELECTED_UUID, payload: uuid });
};
};
export const addDisabledButton = (buttonName: string) => {
return dispatch => {
- dispatch({ type: multiselectActionContants.ADD_DISABLED, payload: buttonName });
+ dispatch({ type: multiselectActionConstants.ADD_DISABLED, payload: buttonName });
};
};
export const removeDisabledButton = (buttonName: string) => {
return dispatch => {
- dispatch({ type: multiselectActionContants.REMOVE_DISABLED, payload: buttonName });
+ dispatch({ type: multiselectActionConstants.REMOVE_DISABLED, payload: buttonName });
};
};
-export const multiselectActions = {
- toggleMSToolbar,
- setCheckedListOnStore,
- selectOne,
- deselectOne,
- toggleOne,
- setSelectedUuid,
- addDisabledButton,
- removeDisabledButton,
-};
diff --git a/services/workbench2/src/store/multiselect/multiselect-reducer.tsx b/services/workbench2/src/store/multiselect/multiselect-reducer.tsx
index 26b853933c..5f99511255 100644
--- a/services/workbench2/src/store/multiselect/multiselect-reducer.tsx
+++ b/services/workbench2/src/store/multiselect/multiselect-reducer.tsx
@@ -2,14 +2,14 @@
//
// SPDX-License-Identifier: AGPL-3.0
-import { multiselectActionContants } from "./multiselect-actions";
+import { multiselectActionConstants } from "./multiselect-actions";
import { TCheckedList } from "components/data-table/data-table";
type MultiselectToolbarState = {
isVisible: boolean;
checkedList: TCheckedList;
selectedUuid: string;
- disabledButtons: string[]
+ disabledButtons: string[];
};
const multiselectToolbarInitialState = {
@@ -19,7 +19,7 @@ const multiselectToolbarInitialState = {
disabledButtons: []
};
-const { TOGGLE_VISIBLITY, SET_CHECKEDLIST, SELECT_ONE, DESELECT_ONE, TOGGLE_ONE, SET_SELECTED_UUID, ADD_DISABLED, REMOVE_DISABLED } = multiselectActionContants;
+const { TOGGLE_VISIBLITY, SET_CHECKEDLIST, SELECT_ONE, DESELECT_ONE, TOGGLE_ONE, SET_SELECTED_UUID, ADD_DISABLED, REMOVE_DISABLED } = multiselectActionConstants;
export const multiselectReducer = (state: MultiselectToolbarState = multiselectToolbarInitialState, action) => {
switch (action.type) {
diff --git a/services/workbench2/src/store/workbench/workbench-actions.ts b/services/workbench2/src/store/workbench/workbench-actions.ts
index b286186aba..ed05c0b172 100644
--- a/services/workbench2/src/store/workbench/workbench-actions.ts
+++ b/services/workbench2/src/store/workbench/workbench-actions.ts
@@ -101,7 +101,7 @@ import { loadAllProcessesPanel, allProcessesPanelActions } from "../all-processe
import { allProcessesPanelColumns } from "views/all-processes-panel/all-processes-panel";
import { userProfileGroupsColumns } from "views/user-profile-panel/user-profile-panel-root";
import { selectedToArray, selectedToKindSet } from "components/multiselect-toolbar/MultiselectToolbar";
-import { multiselectActions } from "store/multiselect/multiselect-actions";
+import { deselectOne } from "store/multiselect/multiselect-actions";
import { treePickerActions } from "store/tree-picker/tree-picker-actions";
export const WORKBENCH_LOADING_SCREEN = "workbenchLoadingScreen";
@@ -477,7 +477,7 @@ export const copyCollection = (data: CopyFormDialogData) => async (dispatch: Dis
link: collection.ownerUuid,
})
);
- dispatch<any>(multiselectActions.deselectOne(copyToProject.uuid));
+ dispatch<any>(deselectOne(copyToProject.uuid));
}
} catch (e) {
dispatch(
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list