Wizard: Fix registration validation for Satellite on edit
When editing a blueprint with Satellite registration the "Save changes" button was disabled due to registration validation failing with "No activation key selected". Activation key is not required for Satellite.
This commit is contained in:
parent
68b2f74a97
commit
894d2a4d76
1 changed files with 6 additions and 1 deletions
|
|
@ -130,7 +130,11 @@ export function useRegistrationValidation(): StepValidation {
|
|||
}
|
||||
);
|
||||
|
||||
if (registrationType !== 'register-later' && !activationKey) {
|
||||
if (
|
||||
registrationType !== 'register-later' &&
|
||||
registrationType !== 'register-satellite' &&
|
||||
!activationKey
|
||||
) {
|
||||
return {
|
||||
errors: { activationKey: 'No activation key selected' },
|
||||
disabledNext: true,
|
||||
|
|
@ -139,6 +143,7 @@ export function useRegistrationValidation(): StepValidation {
|
|||
|
||||
if (
|
||||
registrationType !== 'register-later' &&
|
||||
registrationType !== 'register-satellite' &&
|
||||
activationKey &&
|
||||
(isFetchingKeyInfo || isErrorKeyInfo)
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue