WizardV2: Validate steps through redux state

Store validation status in redux state.
This is bit complex on the redux side, but pretty simple on the components.
It allows for reuse of the validation state instead of revalidating wherever needed.
This commit is contained in:
Ondrej Ezr 2024-04-16 18:43:11 +02:00 committed by Klara Simickova
parent be5311e66a
commit 709ae39d23
8 changed files with 204 additions and 19 deletions

View file

@ -172,6 +172,7 @@ export const mapRequestToState = (request: BlueprintResponse): wizardState => {
repository: '',
isRequiredByOpenScap: false,
})) || [],
stepValidations: {},
};
};