X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b13fa1f0403b854ccb4b0a2f75323984581bf877..eb4491eea9ba873845f7a5796d139d19977f8112:/src/store/side-panel/side-panel-reducer.ts diff --git a/src/store/side-panel/side-panel-reducer.ts b/src/store/side-panel/side-panel-reducer.ts index 8c73a8f596..bda6965e2d 100644 --- a/src/store/side-panel/side-panel-reducer.ts +++ b/src/store/side-panel/side-panel-reducer.ts @@ -12,6 +12,8 @@ import { favoritePanelActions } from "../favorite-panel/favorite-panel-action"; import { projectPanelActions } from "../project-panel/project-panel-action"; import { projectActions } from "../project/project-action"; import { getProjectUrl } from "../../models/project"; +import { columns as projectPanelColumns } from "../../views/project-panel/project-panel"; +import { columns as favoritePanelColumns } from "../../views/favorite-panel/favorite-panel"; export type SidePanelState = SidePanelItem[]; @@ -63,8 +65,9 @@ export const sidePanelData = [ activeAction: (dispatch: Dispatch, uuid: string) => { dispatch(projectActions.TOGGLE_PROJECT_TREE_ITEM_ACTIVE(uuid)); dispatch(push(getProjectUrl(uuid))); + dispatch(projectPanelActions.SET_COLUMNS({ columns: projectPanelColumns })); dispatch(projectPanelActions.RESET_PAGINATION()); - dispatch(projectPanelActions.REQUEST_ITEMS()); + dispatch(projectPanelActions.REQUEST_ITEMS()); } }, { @@ -92,6 +95,7 @@ export const sidePanelData = [ active: false, activeAction: (dispatch: Dispatch) => { dispatch(push("/favorites")); + dispatch(favoritePanelActions.SET_COLUMNS({ columns: favoritePanelColumns })); dispatch(favoritePanelActions.RESET_PAGINATION()); dispatch(favoritePanelActions.REQUEST_ITEMS()); }