21128: add to trash > move to trash Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa...
[arvados-workbench2.git] / src / store / trash / trash-actions.ts
index d6f0d9a73d2618fea1d6a18cad1281c0b99ee826..dd442188314865bb6cae3c4174e9c56947458c45 100644 (file)
@@ -22,7 +22,7 @@ export const toggleProjectTrashed =
             let errorMessage = "";
             let successMessage = "";
             let untrashedResource;
-            dispatch<any>(addDisabledButton(MultiSelectMenuActionNames.ADD_TO_TRASH))
+            dispatch<any>(addDisabledButton(MultiSelectMenuActionNames.MOVE_TO_TRASH))
             try {
                 if (isTrashed) {
                     errorMessage = "Could not restore project from trash";
@@ -78,7 +78,7 @@ export const toggleCollectionTrashed =
             let errorMessage = "";
             let successMessage = "";
             console.log('hi')
-            dispatch<any>(addDisabledButton(MultiSelectMenuActionNames.ADD_TO_TRASH))
+            dispatch<any>(addDisabledButton(MultiSelectMenuActionNames.MOVE_TO_TRASH))
             try {
                 if (isTrashed) {
                     const { location } = getState().router;