-
-
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? |
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.
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.
Hi Fon,
a couple of question:
*The switch still does not look disabled can we implement that look?
- What do you mean by "Please enable an encryption module or app"? I mean what's the difference between them?
Would that be blurring it out? What is the look?
The encryption system allows support for different encryption modules. The "default encryption module" is implemented in the app "Default encryption module". So in this case they are the same thing hence the use of OR. |
Perfect, then for the text I think we should use: |
`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 <fenn25.fn@gmail.com>
Well, I was asking because that is what was there before this was ever a pull request and my initial changes removed that, and then added the timeout effect but it as was restored and just the notice added under the toggle.
|
Show visual feedback if user clicks on encryption toggle when it cannot be activated. Signed-off-by: nfebe <fenn25.fn@gmail.com>
61bac10
to
b374055
Compare
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