prepare structure and init stepper
[arvados-workbench2.git] / src / store / run-process-panel / run-process-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 { unionize, ofType, UnionOf } from "~/common/unionize";
7 import { ServiceRepository } from "~/services/services";
8 import { RootState } from '~/store/store';
9
10 export const runProcessPanelActions = unionize({
11     CHANGE_STEP: ofType<number>()
12 });
13
14 export type RunProcessPanelAction = UnionOf<typeof runProcessPanelActions>;
15
16 export const loadRunProcessPanel = () =>
17     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
18         
19     };
20
21 export const goToStep = (step: number) => runProcessPanelActions.CHANGE_STEP(step);