From 4d3c5f5861ea4c1d5e8491517806651cdfeab57f Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Thu, 9 Nov 2023 11:12:01 -0500 Subject: [PATCH] 19302: tree nav to virtual machines works Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- src/store/navigation/navigation-action.ts | 3 +++ src/store/side-panel-tree/side-panel-tree-actions.ts | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/store/navigation/navigation-action.ts b/src/store/navigation/navigation-action.ts index 61720b56ab..55112fb0ae 100644 --- a/src/store/navigation/navigation-action.ts +++ b/src/store/navigation/navigation-action.ts @@ -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; diff --git a/src/store/side-panel-tree/side-panel-tree-actions.ts b/src/store/side-panel-tree/side-panel-tree-actions.ts index 0abea951bf..91c19d4e7f 100644 --- a/src/store/side-panel-tree/side-panel-tree-actions.ts +++ b/src/store/side-panel-tree/side-panel-tree-actions.ts @@ -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(activateSidePanelTreeProject(id)); } }; -- 2.30.2