Apply suggestions from code review
Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
This commit is contained in:
parent
e46ab433f4
commit
6a42124489
|
@ -98,7 +98,7 @@ ModalPopup {
|
||||||
visible: false
|
visible: false
|
||||||
accounts: walletModel.accounts
|
accounts: walletModel.accounts
|
||||||
contacts: profileModel.addedContacts
|
contacts: profileModel.addedContacts
|
||||||
selectedRecipient: { "address": profileModel.ens.ensRegisterAddress, "type": RecipientSelector.Type.Address } //////////////////////////////
|
selectedRecipient: { "address": profileModel.ens.ensRegisterAddress, "type": RecipientSelector.Type.Address }
|
||||||
readOnly: true
|
readOnly: true
|
||||||
onSelectedRecipientChanged: gasSelector.estimateGas()
|
onSelectedRecipientChanged: gasSelector.estimateGas()
|
||||||
}
|
}
|
||||||
|
@ -156,9 +156,7 @@ ModalPopup {
|
||||||
"symbol": "ETH",
|
"symbol": "ETH",
|
||||||
"fiatValue": gasSelector.selectedGasFiatValue
|
"fiatValue": gasSelector.selectedGasFiatValue
|
||||||
}
|
}
|
||||||
toAccount: {
|
toAccount: selectRecipient.selectedRecipient
|
||||||
return selectRecipient.selectedRecipient
|
|
||||||
}
|
|
||||||
asset: root.asset
|
asset: root.asset
|
||||||
currency: walletModel.defaultCurrency
|
currency: walletModel.defaultCurrency
|
||||||
amount: {
|
amount: {
|
||||||
|
@ -218,7 +216,6 @@ ModalPopup {
|
||||||
label: qsTr("Next")
|
label: qsTr("Next")
|
||||||
disabled: !stack.currentGroup.isValid
|
disabled: !stack.currentGroup.isValid
|
||||||
onClicked: {
|
onClicked: {
|
||||||
const isValid = stack.currentGroup.validate()
|
|
||||||
|
|
||||||
if (stack.currentGroup.validate()) {
|
if (stack.currentGroup.validate()) {
|
||||||
if (stack.isLastGroup) {
|
if (stack.isLastGroup) {
|
||||||
|
@ -236,4 +233,3 @@ Designer {
|
||||||
D{i:0;autoSize:true;height:480;width:640}
|
D{i:0;autoSize:true;height:480;width:640}
|
||||||
}
|
}
|
||||||
##^##*/
|
##^##*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue