21128: disabled trash button during async op Arvados-DCO-1.1-Signed-off-by: Lisa...
[arvados-workbench2.git] / src / store / multiselect / multiselect-actions.tsx
index 091d3ef611eddb73bb17ada9d67d198aaeb6cb1e..9b564486f9ab5cb3c80f402775be19f5c4d3b627 100644 (file)
@@ -53,7 +53,7 @@ export const setSelectedUuid = (uuid: string | null) => {
     };
 };
 
-export const setDisabledButton = (buttonName: string) => {
+export const addDisabledButton = (buttonName: string) => {
     return dispatch => {
         dispatch({ type: multiselectActionContants.ADD_DISABLED, payload: buttonName });
     };
@@ -72,6 +72,6 @@ export const multiselectActions = {
     deselectOne,
     toggleOne,
     setSelectedUuid,
-    setDisabledButton,
+    addDisabledButton,
     removeDisabledButton,
 };