19302: tree nav to virtual machines works Arvados-DCO-1.1-Signed-off-by: Lisa Knox...
authorLisa Knox <lisaknox83@gmail.com>
Thu, 9 Nov 2023 16:12:01 +0000 (11:12 -0500)
committerLisa Knox <lisaknox83@gmail.com>
Thu, 9 Nov 2023 16:12:01 +0000 (11:12 -0500)
src/store/navigation/navigation-action.ts
src/store/side-panel-tree/side-panel-tree-actions.ts

index 61720b56abfd5bbba55266a08fd95dd63fff8de8..55112fb0ae44ab153e89ce41058205d5fb0d5ca6 100644 (file)
@@ -69,6 +69,9 @@ export const navigateTo = (uuid: string) => async (dispatch: Dispatch, getState:
         case SidePanelTreeCategory.ALL_PROCESSES:
             dispatch(navigateToAllProcesses);
             return;
+        case SidePanelTreeCategory.SHELL_ACCESS:
+            dispatch(navigateToUserVirtualMachines)
+            return;
         case USERS_PANEL_LABEL:
             dispatch(navigateToUsers);
             return;
index 0abea951bfd30afd5f99c07f0113c2c8c712ccd1..91c19d4e7f93000cb8373a365c39497434536a8b 100644 (file)
@@ -24,7 +24,7 @@ export enum SidePanelTreeCategory {
     PUBLIC_FAVORITES = 'Public Favorites',
     SHARED_WITH_ME = 'Shared with me',
     ALL_PROCESSES = 'All Processes',
-    SHELL_ACCESS = 'Shell access',
+    SHELL_ACCESS = 'Shell Access',
     GROUPS = 'Groups',
     TRASH = 'Trash',
 }
@@ -188,9 +188,9 @@ export const activateSidePanelTreeItem = (id: string) =>
     async (dispatch: Dispatch, getState: () => RootState) => {
         const node = getSidePanelTreeNode(id)(getState().treePicker);
         if (node && !node.active) {
-            dispatch(treePickerActions.ACTIVATE_TREE_PICKER_NODE({ id, pickerId: SIDE_PANEL_TREE }));
-        }
-        if (!isSidePanelTreeCategory(id)) {
+        dispatch(treePickerActions.ACTIVATE_TREE_PICKER_NODE({ id, pickerId: SIDE_PANEL_TREE }));
+    }
+    if (!isSidePanelTreeCategory(id)) {
             await dispatch<any>(activateSidePanelTreeProject(id));
         }
     };