mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
Desktop: Fixes #10887: Prevent disabling of textbox inputs after entering an incorrect password (#11241)
This commit is contained in:
parent
6cbdde578d
commit
c2844470c5
@ -206,7 +206,7 @@ const EncryptionConfigScreen = (props: Props) => {
|
|||||||
|
|
||||||
if (hasMasterPassword && newEnabled) {
|
if (hasMasterPassword && newEnabled) {
|
||||||
if (!(await masterPasswordIsValid(newPassword))) {
|
if (!(await masterPasswordIsValid(newPassword))) {
|
||||||
alert('Invalid password. Please try again. If you have forgotten your password you will need to reset it.');
|
await dialogs.alert('Invalid password. Please try again. If you have forgotten your password you will need to reset it.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user