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

fix(ui): dim password field when password generation option is selected #1427

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

TheCatLady
Copy link
Collaborator

Description

Dims password field in Create Local User modal when Automatically Generate Password is checked, so that it is clearer that the password field is disabled.

Screenshot (if UI-related)

To-Dos

  • Successful build yarn build

Issues Fixed or Closed

N/A

@TheCatLady TheCatLady requested a review from sct as a code owner April 14, 2021 20:20
@@ -388,7 +388,9 @@ const UserList: React.FC = () => {
/>
</div>
</div>
<div className="form-row">
<div
className={`form-row ${values.genpassword && 'opacity-50'}`}
Copy link
Owner

Choose a reason for hiding this comment

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

this will end up printing out the class name false when values.genpassword is false. You shouldn't use the && pattern like this in anything except for rendering React components.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah okay, fixed!

@sct sct merged commit e8bbd44 into develop Apr 15, 2021
@sct sct deleted the fix/ui/disable-password-field branch April 15, 2021 11:46
@github-actions
Copy link

🎉 This PR is included in version 1.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants