17637: Takes the user to the recently untrashed project.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 12 May 2021 21:15:50 +0000 (18:15 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 13 May 2021 14:40:31 +0000 (11:40 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

src/store/trash/trash-actions.ts

index 6a33e6a091a2a3b6221ae76fdb36b4131bf6ec5b..690f824d782e46e3d4d757fbe75ea0c792168c07 100644 (file)
@@ -22,8 +22,8 @@ export const toggleProjectTrashed = (uuid: string, ownerUuid: string, isTrashed:
                 errorMessage = "Could not restore project from trash";
                 successMessage = "Restored from trash";
                 await services.groupsService.untrash(uuid);
+                dispatch<any>(navigateTo(uuid));
                 dispatch<any>(activateSidePanelTreeItem(uuid));
-                dispatch(trashPanelActions.REQUEST_ITEMS());
             } else {
                 errorMessage = "Could not move project to trash";
                 successMessage = "Added to trash";