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

Remove default initialization of radio button #3991

Merged
merged 1 commit into from
Jun 26, 2020
Merged

Conversation

msorens
Copy link
Contributor

@msorens msorens commented Jun 25, 2020

🔩 Description: What code changed, and why?

Once you save a token as Inactive, you could not reactivate it. The system always thought "Active" was the saved state, so switching to Active actually disables the "Save" button instead of enabling it.
Cause: The default state of the radio button was being initialized to true, regardless of its actual value, thereby rendering the mechanism that recognizes a change ineffective.

⛓️ Related Resources

NA

👍 Definition of Done

You can reactivate an Inactive token in the UI.
image

👟 How to Build and Test the Change

Navigate to Settings >> Tokens >> (token) >> Details

Use a token that is inactive. If you do not have one, open the details, make it inactive, save, then go back to the token list, and re-open the details.

✅ Checklist

That was causing the "saved" state of the radio button
to be true, regardless of its actual value,
thereby rendering the mechanism that recognizes a change ineffective.

Signed-off-by: michael sorens <msorens@chef.io>
@msorens msorens self-assigned this Jun 25, 2020
@msorens msorens requested review from a team June 25, 2020 22:59
@msorens msorens added auth-team anything that needs to be on the auth team board automate-auth automate-ui bug 🐛 Something isn't working ui labels Jun 25, 2020
@msorens msorens added this to the Auth: Sprint 17 milestone Jun 25, 2020
@msorens msorens changed the title Remove default intiialization of radio button Remove default initialization of radio button Jun 25, 2020
@susanev susanev requested review from a team June 26, 2020 15:00
@msorens msorens merged commit b13e6ab into master Jun 26, 2020
@msorens msorens deleted the ms/inactive-token-fix branch June 26, 2020 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-team anything that needs to be on the auth team board automate-auth automate-ui bug 🐛 Something isn't working ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants