X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f63f3a5360ae6381d4b332bf86ef52b4e22107fb..3a3de86b86ef60fc86f1190d42bc8a2471ab5276:/src/store/project-panel/project-panel-action.ts diff --git a/src/store/project-panel/project-panel-action.ts b/src/store/project-panel/project-panel-action.ts index 6e639017..ef720923 100644 --- a/src/store/project-panel/project-panel-action.ts +++ b/src/store/project-panel/project-panel-action.ts @@ -8,8 +8,10 @@ import { Dispatch } from 'redux'; import { ServiceRepository } from "~/services/services"; import { RootState } from '~/store/store'; import { getProperty } from "~/store/properties/properties"; + export const PROJECT_PANEL_ID = "projectPanel"; export const PROJECT_PANEL_CURRENT_UUID = "projectPanelCurrentUuid"; +export const IS_PROJECT_PANEL_TRASHED = 'isProjectPanelTrashed'; export const projectPanelActions = bindDataExplorerActions(PROJECT_PANEL_ID); export const openProjectPanel = (projectUuid: string) => @@ -20,3 +22,5 @@ export const openProjectPanel = (projectUuid: string) => export const getProjectPanelCurrentUuid = (state: RootState) => getProperty(PROJECT_PANEL_CURRENT_UUID)(state.properties); +export const setIsProjectPanelTrashed = (isTrashed: boolean) => + propertiesActions.SET_PROPERTY({ key: IS_PROJECT_PANEL_TRASHED, value: isTrashed });