fix: apply correct theme and use correct model to access functions

This commit is contained in:
hydr063n 2020-09-29 01:20:37 +02:00 committed by Iuri Matias
parent 6ffa4ef4fa
commit a1dbf306e4
2 changed files with 4 additions and 2 deletions

View File

@ -207,6 +207,7 @@ Item {
anchors.topMargin: 24
border.width: 1
border.color: Style.current.border
color: Style.current.background
radius: 50
height: 20
width: 350
@ -220,6 +221,7 @@ Item {
font.weight: Font.Bold
font.pixelSize: 12
anchors.leftMargin: Style.current.padding
color: Style.current.textColor
}
StyledText {

View File

@ -315,12 +315,12 @@ Item {
anchors.bottomMargin: Style.current.padding
anchors.right: parent.right
anchors.rightMargin: Style.current.padding
label: parseFloat(walletModel.getSNTBalance()) < 10 ?
label: parseFloat(utilsModel.getSNTBalance()) < 10 ?
//% "Not enough SNT"
qsTrId("not-enough-snt") :
//% "Register"
qsTrId("ens-register")
disabled: parseFloat(walletModel.getSNTBalance()) < 10 || !termsAndConditionsCheckbox.checked
disabled: parseFloat(utilsModel.getSNTBalance()) < 10 || !termsAndConditionsCheckbox.checked
onClicked: transactionDialog.open()
}
}