-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(settings): Provide visual feedback 4 encryption toggle #49200
base: master
Are you sure you want to change the base?
Conversation
35222b8
to
2a2f629
Compare
2731f3d
to
016738f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just disable the checkbox-switch and show a warning note?
That is one option, I am just did this around the feedback from a user.... cc: @marcoambrosini @jancborchardt Plus that has the limitation that we have to display the warning at all times somewhere on the page as disabled components do not respond to events. |
I think this is the way to go @nfebe -- |
This means we would display the warning around (ontop, beside, under) the toggle? cc; @marcoambrosini |
Usually we place warning text underneath the inputs. We have this built into the password input component for example. Maybe it would even make sense to include this in the component? @skjnldsv wdyt? |
`Object.entries([])` would return an empty array, that leads to the `find` return undefined. `encryptionReady` and `encryptionEnabled` also returns undefined when no encryption module is available or functional (I guess). Signed-off-by: nfebe <[email protected]>
Show visual feedback if user clicks on encryption toggle when it cannot be activated. Signed-off-by: nfebe <[email protected]>
016738f
to
61bac10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Show visual feedback if user clicks on encryption toggle when it cannot be activated.
Demo
feedback-no-encryption-module.webm
Other improvement
Object.entries([])
would return an empty array, that leads to thefind
encryptionReady
andencryptionEnabled
also returns undefined when no encryption module is available or functional (I guess).Resolves : #48829