fix: changing password with wrong current one fails

do not break/overwrite the Submit button's `enabled` property binding

Fixes #9465
This commit is contained in:
Lukáš Tinkl 2023-02-07 21:06:09 +01:00 committed by Alexandra Betouni
parent 0d369129d5
commit 6f9149428d
2 changed files with 1 additions and 2 deletions

View File

@ -145,7 +145,6 @@ Item {
function onPasswordChanged(success: bool, errorMsg: string) { function onPasswordChanged(success: bool, errorMsg: string) {
if (success) { if (success) {
submitBtn.loading = false submitBtn.loading = false
root.exit();
} }
} }
} }

View File

@ -35,7 +35,7 @@ StatusModal {
console.warn("TODO: Display error message when change password action failure! ") console.warn("TODO: Display error message when change password action failure! ")
} }
d.passwordProcessing = ""; d.passwordProcessing = "";
submitBtn.enabled = false; submitBtn.loading = false;
} }
QtObject { QtObject {