X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d9ee24d0f78a21603e2276d0d3142d4db40a831b..8d374520f28b507e8934d57be46374044fb93e2f:/src/store/process-panel/process-panel-actions.ts diff --git a/src/store/process-panel/process-panel-actions.ts b/src/store/process-panel/process-panel-actions.ts index 8bdbe4f297..962f5dfcf3 100644 --- a/src/store/process-panel/process-panel-actions.ts +++ b/src/store/process-panel/process-panel-actions.ts @@ -2,17 +2,18 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { unionize, ofType, UnionOf } from "~/common/unionize"; -import { loadProcess } from '~/store/processes/processes-actions'; +import { unionize, ofType, UnionOf } from "common/unionize"; +import { loadProcess } from 'store/processes/processes-actions'; import { Dispatch } from 'redux'; -import { ProcessStatus } from '~/store/processes/process'; -import { RootState } from '~/store/store'; -import { ServiceRepository } from "~/services/services"; -import { navigateTo, navigateToWorkflows } from '~/store/navigation/navigation-action'; -import { snackbarActions } from '~/store/snackbar/snackbar-actions'; +import { ProcessStatus } from 'store/processes/process'; +import { RootState } from 'store/store'; +import { ServiceRepository } from "services/services"; +import { navigateTo, navigateToWorkflows } from 'store/navigation/navigation-action'; +import { snackbarActions } from 'store/snackbar/snackbar-actions'; import { SnackbarKind } from '../snackbar/snackbar-actions'; -import { showWorkflowDetails } from '~/store/workflow-panel/workflow-panel-actions'; +import { showWorkflowDetails } from 'store/workflow-panel/workflow-panel-actions'; import { loadSubprocessPanel } from "../subprocess-panel/subprocess-panel-actions"; +import { initProcessLogsPanel, processLogsPanelActions } from "store/process-logs-panel/process-logs-panel-actions"; export const processPanelActions = unionize({ SET_PROCESS_PANEL_CONTAINER_REQUEST_UUID: ofType(), @@ -25,10 +26,12 @@ export type ProcessPanelAction = UnionOf; export const toggleProcessPanelFilter = processPanelActions.TOGGLE_PROCESS_PANEL_FILTER; export const loadProcessPanel = (uuid: string) => - (dispatch: Dispatch) => { + async (dispatch: Dispatch) => { + dispatch(processLogsPanelActions.RESET_PROCESS_LOGS_PANEL()); dispatch(processPanelActions.SET_PROCESS_PANEL_CONTAINER_REQUEST_UUID(uuid)); - dispatch(loadProcess(uuid)); + await dispatch(loadProcess(uuid)); dispatch(initProcessPanelFilters); + dispatch(initProcessLogsPanel(uuid)); dispatch(loadSubprocessPanel()); };