[ARVADOS-WORKBENCH2] updated: 1.2.0-486-ge140179
Git user
git at public.curoverse.com
Fri Sep 28 03:41:25 EDT 2018
Summary of changes:
src/store/run-process-panel/run-process-panel-actions.ts | 4 ++--
src/store/run-process-panel/run-process-panel-reducer.ts | 2 +-
src/views/run-process-panel/run-process-panel-root.tsx | 8 ++++----
src/views/run-process-panel/run-process-panel.tsx | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
via e140179bec632ad7dc3b6a232c09377693eea36e (commit)
from 00a61a4484185dc98daa92af5f189779cc10ad3c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e140179bec632ad7dc3b6a232c09377693eea36e
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date: Fri Sep 28 09:41:12 2018 +0200
change code after CR
Feature #14225
Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>
diff --git a/src/store/run-process-panel/run-process-panel-actions.ts b/src/store/run-process-panel/run-process-panel-actions.ts
index 5213d2f..299f387 100644
--- a/src/store/run-process-panel/run-process-panel-actions.ts
+++ b/src/store/run-process-panel/run-process-panel-actions.ts
@@ -8,7 +8,7 @@ import { ServiceRepository } from "~/services/services";
import { RootState } from '~/store/store';
export const runProcessPanelActions = unionize({
- CHANGE_STEP: ofType<number>()
+ SET_CURRENT_STEP: ofType<number>()
});
export type RunProcessPanelAction = UnionOf<typeof runProcessPanelActions>;
@@ -18,4 +18,4 @@ export const loadRunProcessPanel = () =>
};
-export const goToStep = (step: number) => runProcessPanelActions.CHANGE_STEP(step);
\ No newline at end of file
+export const goToStep = (step: number) => runProcessPanelActions.SET_CURRENT_STEP(step);
\ No newline at end of file
diff --git a/src/store/run-process-panel/run-process-panel-reducer.ts b/src/store/run-process-panel/run-process-panel-reducer.ts
index aff1912..a288ae7 100644
--- a/src/store/run-process-panel/run-process-panel-reducer.ts
+++ b/src/store/run-process-panel/run-process-panel-reducer.ts
@@ -14,6 +14,6 @@ const initialState: RunProcessPanel = {
export const runProcessPanelReducer = (state = initialState, action: RunProcessPanelAction): RunProcessPanel =>
runProcessPanelActions.match(action, {
- CHANGE_STEP: currentStep => ({ ...state, currentStep }),
+ SET_CURRENT_STEP: currentStep => ({ ...state, currentStep }),
default: () => state
});
\ No newline at end of file
diff --git a/src/views/run-process-panel/run-process-panel-root.tsx b/src/views/run-process-panel/run-process-panel-root.tsx
index f98660a..61a0fc0 100644
--- a/src/views/run-process-panel/run-process-panel-root.tsx
+++ b/src/views/run-process-panel/run-process-panel-root.tsx
@@ -10,17 +10,17 @@ export interface RunProcessPanelRootDataProps {
}
export interface RunProcessPanelRootActionProps {
- onClick: (step: number) => void;
+ onSetStep: (step: number) => void;
}
type RunProcessPanelRootProps = RunProcessPanelRootDataProps & RunProcessPanelRootActionProps;
-export const RunProcessPanelRoot = ({ currentStep, onClick, ...props }: RunProcessPanelRootProps) =>
+export const RunProcessPanelRoot = ({ currentStep, onSetStep, ...props }: RunProcessPanelRootProps) =>
<Stepper activeStep={currentStep} orientation="vertical" elevation={2}>
<Step>
<StepLabel>Choose a workflow</StepLabel>
<StepContent>
- <Button variant="contained" color="primary" onClick={() => onClick(1)}>
+ <Button variant="contained" color="primary" onClick={() => onSetStep(1)}>
Next
</Button>
</StepContent>
@@ -28,7 +28,7 @@ export const RunProcessPanelRoot = ({ currentStep, onClick, ...props }: RunProce
<Step>
<StepLabel>Select inputs</StepLabel>
<StepContent>
- <Button color="primary" onClick={() => onClick(0)}>
+ <Button color="primary" onClick={() => onSetStep(0)}>
Back
</Button>
<Button variant="contained" color="primary">
diff --git a/src/views/run-process-panel/run-process-panel.tsx b/src/views/run-process-panel/run-process-panel.tsx
index e6bdf0f..725d705 100644
--- a/src/views/run-process-panel/run-process-panel.tsx
+++ b/src/views/run-process-panel/run-process-panel.tsx
@@ -15,7 +15,7 @@ const mapStateToProps = ({ runProcessPanel }: RootState): RunProcessPanelRootDat
};
const mapDispatchToProps = (dispatch: Dispatch): RunProcessPanelRootActionProps => ({
- onClick: (step: number) => {
+ onSetStep: (step: number) => {
dispatch<any>(goToStep(step));
}
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list