X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/795e98eac92b86652d3fe9de6657ffffc009d90e..42ec7892e74f6d9d19f2f0155830565f447a861f:/src/store/side-panel-tree/side-panel-tree-actions.ts 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 1f18b85c52..ff506103db 100644 --- a/src/store/side-panel-tree/side-panel-tree-actions.ts +++ b/src/store/side-panel-tree/side-panel-tree-actions.ts @@ -22,7 +22,7 @@ export enum SidePanelTreeCategory { SHARED_WITH_ME = 'Shared with me', PUBLIC_FAVORITES = 'Public Favorites', WORKFLOWS = 'Workflows', - FAVORITES = 'Favorites', + FAVORITES = 'My Favorites', TRASH = 'Trash', ALL_PROCESSES = 'All Processes' } @@ -45,10 +45,10 @@ export const getSidePanelTreeBranch = (uuid: string) => (treePicker: TreePicker) }; const SIDE_PANEL_CATEGORIES = [ - SidePanelTreeCategory.ALL_PROCESSES, SidePanelTreeCategory.PUBLIC_FAVORITES, - SidePanelTreeCategory.WORKFLOWS, SidePanelTreeCategory.FAVORITES, + SidePanelTreeCategory.WORKFLOWS, + SidePanelTreeCategory.ALL_PROCESSES, SidePanelTreeCategory.TRASH, ]; @@ -106,13 +106,14 @@ const loadProject = (projectUuid: string) => dispatch(resourcesActions.SET_RESOURCES(items)); }; -const loadSharedRoot = async (dispatch: Dispatch, _: () => RootState, services: ServiceRepository) => { +const loadSharedRoot = async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { dispatch(treePickerActions.LOAD_TREE_PICKER_NODE({ id: SidePanelTreeCategory.SHARED_WITH_ME, pickerId: SIDE_PANEL_TREE })); const params = { filters: `[${new FilterBuilder() .addIsA('uuid', ResourceKind.PROJECT) .addEqual('group_class', GroupClass.PROJECT) + .addDistinct('uuid', getState().auth.config.uuidPrefix + '-j7d0g-publicfavorites') .getFilters()}]`, order: new OrderBuilder() .addAsc('name', GroupContentsResourcePrefix.PROJECT)