18368: initial impl
[arvados.git] / src / store / subprocess-panel / subprocess-panel-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Dispatch } from 'redux';
6 import { RootState } from 'store/store';
7 import { ServiceRepository } from 'services/services';
8 import { bindDataExplorerActions } from 'store/data-explorer/data-explorer-action';
9 export const SUBPROCESS_PANEL_ID = "subprocessPanel";
10 export const SUBPROCESS_ATTRIBUTES_DIALOG = 'subprocessAttributesDialog';
11 export const subprocessPanelActions = bindDataExplorerActions(SUBPROCESS_PANEL_ID);
12
13 export const loadSubprocessPanel = () =>
14     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
15         dispatch(subprocessPanelActions.CLEAR());
16         dispatch(subprocessPanelActions.REQUEST_ITEMS());
17     };