Merge branch '21077-background-refresh' refs #21077
[arvados.git] / src / store / multiselect / multiselect-actions.tsx
index 91d23fff42e0f6c6d56d7bb5a2d8fa3e5a294744..1c329a9e90496bb87b168e55b8302c9808f6c555 100644 (file)
@@ -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,
+};