-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
AccessSecretStorageDialog: fix inability to enter recovery key #30090
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
Conversation
Since `onFinished` isn't used if `hasCancel` is false, it's a bit silly to make it mandatory.
9ae0cbf
to
337a375
Compare
AccessSecretStorageDialog
in a BaseDialog
. The main thing this achieves is a FocusLock
.Wrap AccessSecretStorageDialog in a `BaseDialog`. The main thing this achieves is a `FocusLock`.
We have two copies of the same code, and we're about to add a third...
337a375
to
f712fcd
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.
Great, thanks!
> | ||
{content} | ||
</EncryptionCard> | ||
<BaseDialog fixedWidth={false} hasCancel={false}> |
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.
I went back and forth about that fact that this dialog does have a cancel button, so shouldn't it use the one provided by BaseDialog
, and why shouldn't it have an X in the top right, but I think your change strictly makes things better so is fine for now.
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.
Fair point. I just made it match the designs.
167507f
to
18b9c36
Compare
…nt-hq#30090) * BaseDialog: fix documentation, and make `onFinished` optional Since `onFinished` isn't used if `hasCancel` is false, it's a bit silly to make it mandatory. * AccessSecretStorageDialog: fix inability to enter recovery key Wrap AccessSecretStorageDialog in a `BaseDialog`. The main thing this achieves is a `FocusLock`. * playwright: factor out helper for verification We have two copies of the same code, and we're about to add a third... * playwright: test for verifying from Settings * Add a unit test for BaseDialog
Wrap
AccessSecretStorageDialog
in aBaseDialog
. The main thing this achieves is aFocusLock
.Also, some fixes to the documentation on BaseDialog, and a playwright test.
Review commit-by-commit.
Fixes: #30089