Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HMS-2151 fix: make it possible to accept defaults #11

Merged

Conversation

frasertweedale
Copy link
Contributor

The default "title" field comes from the domain record (i.e. whatever ipa-hcc defaults it to). But the wizard does not enable "Next" on the Service Details page until onChangeTitle fires. In other words, the user must change the value before they can proceed.

It should be possible to accept the default. Extract "data is OK to proceed" behaviour to a new function onUserInputChange. Call this function from onChangeTitle, and also from onVerify when the domain data is first received.

As a result, the Next button on the Service Details page should be enabled immediately, allowing the user to accept the defaults.

The default "title" field comes from the domain record (i.e.
whatever ipa-hcc defaults it to).  But the wizard does not enable
"Next" on the Service Details page until `onChangeTitle` fires.  In
other words, the user *must* change the value before they can
proceed.

It should be possible to accept the default.  Extract "data is OK to
proceed" behaviour to a new function `onUserInputChange`.  Call this
function from `onChangeTitle`, and *also* from `onVerify` when the
domain data is first received.

As a result, the Next button on the Service Details page should be
enabled immediately, allowing the user to accept the defaults.
Copy link
Contributor

@aadhikar aadhikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aadhikar aadhikar merged commit acd8c77 into podengo-project:main Oct 13, 2023
1 check passed
@frasertweedale frasertweedale deleted the wizard-accept-defaults branch October 13, 2023 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants