Wizard: Fix death by thousand reviews
When switching between preview and non-preview the Wizard nav got messy. This should fix the problem.
This commit is contained in:
parent
b0725c054e
commit
8dd042aa05
1 changed files with 15 additions and 16 deletions
|
|
@ -401,22 +401,21 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
|
|||
</WizardStep>,
|
||||
]}
|
||||
/>
|
||||
{isFirstBootEnabled && (
|
||||
<WizardStep
|
||||
name="First boot script configuration"
|
||||
id="wizard-first-boot"
|
||||
key="wizard-first-boot"
|
||||
navItem={customStatusNavItem}
|
||||
status={firstBootValidation.disabledNext ? 'error' : 'default'}
|
||||
footer={
|
||||
<CustomWizardFooter
|
||||
disableNext={firstBootValidation.disabledNext}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<FirstBootStep />
|
||||
</WizardStep>
|
||||
)}
|
||||
<WizardStep
|
||||
name="First boot script configuration"
|
||||
id="wizard-first-boot"
|
||||
key="wizard-first-boot"
|
||||
navItem={customStatusNavItem}
|
||||
status={firstBootValidation.disabledNext ? 'error' : 'default'}
|
||||
isHidden={!isFirstBootEnabled}
|
||||
footer={
|
||||
<CustomWizardFooter
|
||||
disableNext={firstBootValidation.disabledNext}
|
||||
/>
|
||||
}
|
||||
>
|
||||
<FirstBootStep />
|
||||
</WizardStep>
|
||||
<WizardStep
|
||||
name="Details"
|
||||
id={'step-details'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue