15768: project multimove works Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox...
[arvados-workbench2.git] / src / store / navigation / navigation-action.ts
index 9a4f31fd2fb67161ceb1df602f89413fc076dfbc..55479188c12d91edc99792e8d03d8781d96d7deb 100644 (file)
@@ -13,7 +13,7 @@ import { pluginConfig } from 'plugins';
 import { snackbarActions, SnackbarKind } from 'store/snackbar/snackbar-actions';
 import { USERS_PANEL_LABEL, MY_ACCOUNT_PANEL_LABEL } from 'store/breadcrumbs/breadcrumbs-actions';
 
-const navigationNotAvailable = (id: string) =>
+export const navigationNotAvailable = (id: string) =>
     snackbarActions.OPEN_SNACKBAR({
         message: `${id} not available`,
         hideDuration: 3000,
@@ -40,6 +40,10 @@ export const navigateTo = (uuid: string) =>
             case ResourceKind.VIRTUAL_MACHINE:
                 dispatch<any>(navigateToAdminVirtualMachines);
                 return;
+            case ResourceKind.WORKFLOW:
+                dispatch<any>(pushOrGoto(getNavUrl(uuid, getState().auth)));
+                // dispatch<any>(openDetailsPanel(uuid));
+                return;
         }
 
         switch (uuid) {