V2Wizard: Create foundation for Target Environments substep AWS
Substep for an AWS target environment created in wizard, component to follow in subsequent commit.
This commit is contained in:
parent
9a0e8da0f1
commit
f778b5431c
1 changed files with 18 additions and 4 deletions
|
|
@ -47,6 +47,8 @@ const CreateImageWizard = () => {
|
|||
// Ensure the wizard starts with a fresh initial state
|
||||
dispatch(initializeWizard);
|
||||
|
||||
const targetEnvironments = useAppSelector((state) => selectImageTypes(state));
|
||||
|
||||
return (
|
||||
<>
|
||||
<ImageBuilderHeader />
|
||||
|
|
@ -57,15 +59,27 @@ const CreateImageWizard = () => {
|
|||
id="step-image-output"
|
||||
footer={
|
||||
<CustomWizardFooter
|
||||
disableNext={
|
||||
useAppSelector((state) => selectImageTypes(state)).length ===
|
||||
0
|
||||
}
|
||||
disableNext={targetEnvironments.length === 0}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<ImageOutputStep />
|
||||
</WizardStep>
|
||||
<WizardStep
|
||||
name="Target Environment"
|
||||
id="step-target-environment"
|
||||
steps={[
|
||||
<WizardStep
|
||||
name="Amazon Web Services"
|
||||
id="wizard-target-aws"
|
||||
key="wizard-target-aws"
|
||||
footer={<CustomWizardFooter disableNext={true} />}
|
||||
isHidden={!targetEnvironments.includes('aws')}
|
||||
>
|
||||
{/* <Aws /> */}
|
||||
</WizardStep>,
|
||||
]}
|
||||
/>
|
||||
<WizardStep
|
||||
name="Review"
|
||||
id="step-review"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue