Wizard: make optional steps clickable on prem

This commit is contained in:
Katarina Sieklova 2025-04-02 16:34:53 +02:00 committed by Lucas Garfield
parent 3adf864c42
commit 8da57f5790

View file

@ -260,7 +260,11 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
const isVisitOptional =
'parentId' in step && step.parentId === 'step-optional-steps';
if (step.id === 'step-register' && step.isVisited) {
if (process.env.IS_ON_PREMISE) {
if (step.id === 'step-oscap' && step.isVisited) {
setWasRegisterVisited(true);
}
} else if (step.id === 'step-register' && step.isVisited) {
setWasRegisterVisited(true);
}