change code after CR
[arvados-workbench2.git] / src / store / project-panel / project-panel-action.ts
index 6e639017dbd7de0bdd0289443efe1169694f8abe..ef720923b317c0c0c25a4724b63988c0a6c52c1b 100644 (file)
@@ -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<string>(PROJECT_PANEL_CURRENT_UUID)(state.properties);
 
+export const setIsProjectPanelTrashed = (isTrashed: boolean) => 
+    propertiesActions.SET_PROPERTY({ key: IS_PROJECT_PANEL_TRASHED, value: isTrashed });