Merge branch '17426-plug-ins' refs #17426
[arvados-workbench2.git] / src / store / side-panel / side-panel-action.ts
index d0fde0e0c4f65965d9bac996eef13445436f8754..28320f9661d5fb5819938f958f264012dd81110e 100644 (file)
@@ -3,34 +3,9 @@
 // SPDX-License-Identifier: AGPL-3.0
 
 import { Dispatch } from 'redux';
-import { isSidePanelTreeCategory, SidePanelTreeCategory } from '~/store/side-panel-tree/side-panel-tree-actions';
-import { navigateToFavorites, navigateTo } from '../navigation/navigation-action';
-import { snackbarActions } from '~/store/snackbar/snackbar-actions';
-import { RootState } from '~/store/store';
-import { extractUuidKind, ResourceKind } from '~/models/resource';
-import { openProjectContextMenu } from '~/store/context-menu/context-menu-actions';
-import { openRootProjectContextMenu } from '../context-menu/context-menu-actions';
+import { navigateTo } from '~/store/navigation/navigation-action';
 
 export const navigateFromSidePanel = (id: string) =>
     (dispatch: Dispatch) => {
-        if (isSidePanelTreeCategory(id)) {
-            dispatch<any>(getSidePanelTreeCategoryAction(id));
-        } else {
-            dispatch<any>(navigateTo(id));
-        }
+        dispatch<any>(navigateTo(id));
     };
-
-const getSidePanelTreeCategoryAction = (id: string) => {
-    switch (id) {
-        case SidePanelTreeCategory.FAVORITES:
-            return navigateToFavorites;
-        default:
-            return sidePanelTreeCategoryNotAvailable(id);
-    }
-};
-
-const sidePanelTreeCategoryNotAvailable = (id: string) =>
-    snackbarActions.OPEN_SNACKBAR({
-        message: `${id} not available`,
-        hideDuration: 3000,
-    });
\ No newline at end of file