Skip to content

Commit

Permalink
CreateImageWizard: hide activation keys for on-prem
Browse files Browse the repository at this point in the history
Subject says it all
  • Loading branch information
kingsleyzissou committed Jan 21, 2025
1 parent e3fa6e8 commit a516068
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/Components/CreateImageWizard/steps/Registration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ const RegistrationStep = () => {
system during initial boot.
</Text>
<Registration />
<ActivationKeysList />
{activationKey && registrationType !== 'register-later' && (
<FormGroup
label={'Selected activation key'}
data-testid="selected-activation-key"
>
<ActivationKeyInformation />
</FormGroup>
)}
{!process.env.IS_ON_PREMISE && <ActivationKeysList />}
{!process.env.IS_ON_PREMISE &&
activationKey &&
registrationType !== 'register-later' && (
<FormGroup
label={'Selected activation key'}
data-testid="selected-activation-key"
>
<ActivationKeyInformation />
</FormGroup>
)}
</Form>
);
};
Expand Down

0 comments on commit a516068

Please sign in to comment.