fix(@wallet): Hide ens settings section if no wallet
This commit is contained in:
parent
5e05a7613c
commit
6d1e0f8cc3
|
@ -30,6 +30,9 @@ Column {
|
||||||
icon.name: model.icon
|
icon.name: model.icon
|
||||||
selected: Global.settingsSubsection === model.subsection
|
selected: Global.settingsSubsection === model.subsection
|
||||||
onClicked: root.menuItemClicked(model)
|
onClicked: root.menuItemClicked(model)
|
||||||
|
visible: {
|
||||||
|
(model.subsection !== Constants.settingsSubsection.ensUsernames || root.walletMenuItemEnabled)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -393,22 +393,6 @@ Item {
|
||||||
//% "Register"
|
//% "Register"
|
||||||
qsTrId("ens-register")
|
qsTrId("ens-register")
|
||||||
enabled: parseFloat(root.ensUsernamesStore.getSntBalance()) >= 10 && termsAndConditionsCheckbox.checked
|
enabled: parseFloat(root.ensUsernamesStore.getSntBalance()) >= 10 && termsAndConditionsCheckbox.checked
|
||||||
onClicked: localAccountSensitiveSettings.isWalletEnabled ? transactionDialog.open() : confirmationPopup.open()
|
onClicked: transactionDialog.open()
|
||||||
}
|
|
||||||
|
|
||||||
ConfirmationDialog {
|
|
||||||
id: confirmationPopup
|
|
||||||
showCancelButton: true
|
|
||||||
confirmationText: qsTr("This feature is experimental and is meant for testing purposes by core contributors and the community. It's not meant for real use and makes no claims of security or integrity of funds or data. Use at your own risk.")
|
|
||||||
confirmButtonLabel: qsTr("I understand")
|
|
||||||
onConfirmButtonClicked: {
|
|
||||||
localAccountSensitiveSettings.isWalletEnabled = true
|
|
||||||
close()
|
|
||||||
transactionDialog.open()
|
|
||||||
}
|
|
||||||
|
|
||||||
onCancelButtonClicked: {
|
|
||||||
close()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue