import { RootState } from "store/store";
import { getProperty } from "store/properties/properties";
import { loadProject } from "store/workbench/workbench-actions";
-import { projectPanelActions } from "store/project-panel/project-panel-action-bind";
+import { projectPanelRunActions, projectPanelDataActions } from "store/project-panel/project-panel-action-bind";
export const PROJECT_PANEL_CURRENT_UUID = "projectPanelCurrentUuid";
export const IS_PROJECT_PANEL_TRASHED = "isProjectPanelTrashed";
export const openProjectPanel = (projectUuid: string) => async (dispatch: Dispatch) => {
await dispatch<any>(loadProject(projectUuid));
dispatch(propertiesActions.SET_PROPERTY({ key: PROJECT_PANEL_CURRENT_UUID, value: projectUuid }));
- dispatch(projectPanelActions.RESET_EXPLORER_SEARCH_VALUE());
- dispatch(projectPanelActions.REQUEST_ITEMS());
+
+ dispatch(projectPanelDataActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(projectPanelDataActions.REQUEST_ITEMS());
+
+ dispatch(projectPanelRunActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(projectPanelRunActions.REQUEST_ITEMS());
};
export const getProjectPanelCurrentUuid = (state: RootState) => getProperty<string>(PROJECT_PANEL_CURRENT_UUID)(state.properties);