Add navigation from breadcrumbs to trash
authorMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Wed, 26 Sep 2018 17:21:40 +0000 (19:21 +0200)
committerMichal Klobukowski <michal.klobukowski@contractors.roche.com>
Wed, 26 Sep 2018 17:21:40 +0000 (19:21 +0200)
Feature #14244

Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski@contractors.roche.com>

src/store/navigation/navigation-action.ts

index c68c5398754e13c6a439af6176cf53a36def01d7..943f38ce98b4eb633b6d369c2bcc2313d85d932f 100644 (file)
@@ -24,8 +24,10 @@ export const navigateTo = (uuid: string) =>
         }
         if (uuid === SidePanelTreeCategory.FAVORITES) {
             dispatch<any>(navigateToFavorites);
-        } else if(uuid === SidePanelTreeCategory.SHARED_WITH_ME){
+        } else if (uuid === SidePanelTreeCategory.SHARED_WITH_ME) {
             dispatch(navigateToSharedWithMe);
+        } else if (uuid === SidePanelTreeCategory.TRASH) {
+            dispatch(navigateToTrash);
         }
     };