Updated showing wrong password exception. Fixes #1762

This commit is contained in:
staked-smart-ace 2021-01-26 22:37:58 +04:00 committed by Iuri Matias
parent cabc82782c
commit 214650df72
1 changed files with 18 additions and 2 deletions

View File

@ -135,6 +135,10 @@ Item {
Keys.onReturnPressed: {
submitBtn.clicked()
}
onTextEdited: {
errMsg.visible = false
loading = false
}
}
StatusRoundButton {
id: submitBtn
@ -176,7 +180,8 @@ Item {
onLoginResponseChanged: {
if (error) {
errorSound.play()
loginError.open()
errMsg.visible = true;
}
}
}
@ -186,7 +191,7 @@ Item {
//% "Generate new keys"
text: qsTrId("generate-new-keys")
anchors.top: txtPassword.bottom
anchors.topMargin: 26
anchors.topMargin: 16
anchors.horizontalCenter: parent.horizontalCenter
font.pixelSize: 13
type: "secondary"
@ -195,6 +200,17 @@ Item {
onGenKeyClicked()
}
}
StyledText {
id: errMsg
anchors.top: generateKeysLinkText.bottom
anchors.topMargin: Style.current.smallPadding
anchors.horizontalCenter: parent.horizontalCenter
visible: false
text: qsTr("Login failed. Please re-enter your password and try again.")
font.pixelSize: 13
color: Style.current.danger
}
}
}