fix(@desktop/wallet): modal is not being closed when clicking Add Account

This commit is contained in:
Andrei Smirnov 2021-07-20 07:37:57 +03:00 committed by Iuri Matias
parent 1621818ecf
commit a3979511e2
3 changed files with 8 additions and 10 deletions

View File

@ -13,7 +13,7 @@ StatusRoundButton {
width: 36
height: 36
readonly property var onAfterAddAccount: function() {
walletInfoContainer.changeSelectedAccount(walletModel.accounts.rowCount() - 1)
walletInfoContainer.changeSelectedAccount(walletModel.accountsView.accounts.rowCount() - 1)
}
onClicked: {

View File

@ -176,14 +176,14 @@ Item {
visible: !!validationError
id: validationErrorText
text: validationError
anchors.top: inputRectangle.bottom
anchors.top: inputField.bottom
anchors.topMargin: validationErrorTopMargin
selectByMouse: true
readOnly: true
font.pixelSize: 12
height: 16
color: validationErrorColor
width: inputRectangle.width
width: inputField.width
wrapMode: TextEdit.Wrap
}
}

View File

@ -1,11 +1,9 @@
import QtQuick 2.13
Image {
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit
mipmap: true
antialiasing: true
sourceSize.width: width || undefined
sourceSize.height: height || undefined
fillMode: Image.PreserveAspectFit
mipmap: true
antialiasing: true
}