fix(AddAccountModal): Updated password error message

Closes #5719
This commit is contained in:
Alexandra Betouni 2022-09-05 11:45:37 +03:00 committed by Alexandra Betouni
parent 89f4fa7440
commit 262a6c3160
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import "../panels"
StatusModal { StatusModal {
id: root id: root
property int minPswLen: 10
readonly property int marginBetweenInputs: Style.dp(38) readonly property int marginBetweenInputs: Style.dp(38)
readonly property alias passwordValidationError: d.passwordValidationError readonly property alias passwordValidationError: d.passwordValidationError
@ -59,7 +60,8 @@ StatusModal {
function onDerivedAddressesErrorChanged() { function onDerivedAddressesErrorChanged() {
if(Utils.isInvalidPasswordMessage(RootStore.derivedAddressesError)) if(Utils.isInvalidPasswordMessage(RootStore.derivedAddressesError))
d.passwordValidationError = qsTr("Wrong password") d.passwordValidationError = qsTr("Password must be at least %n character(s) long", "", root.minPswLen);
} }
} }