1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
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';
10 export const runProcessPanelActions = unionize({
11 SET_CURRENT_STEP: ofType<number>()
14 export type RunProcessPanelAction = UnionOf<typeof runProcessPanelActions>;
16 export const loadRunProcessPanel = () =>
17 (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
21 export const goToStep = (step: number) => runProcessPanelActions.SET_CURRENT_STEP(step);