fix: Remove possibility to add watch accounts on release
This commit is contained in:
parent
8e22459e63
commit
a5e534ac16
|
@ -74,13 +74,19 @@ StatusMenu {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusAction {
|
Loader {
|
||||||
objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier)
|
active: !production
|
||||||
text: qsTr("Add watched address")
|
sourceComponent: StatusAction {
|
||||||
enabled: !root.account
|
objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier)
|
||||||
icon.name: "show"
|
text: qsTr("Add watched address")
|
||||||
onTriggered: {
|
enabled: !root.account
|
||||||
root.addWatchOnlyAccountClicked()
|
icon.name: "show"
|
||||||
|
onTriggered: {
|
||||||
|
root.addWatchOnlyAccountClicked()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onLoaded: {
|
||||||
|
root.addAction(item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,7 @@ Item {
|
||||||
readonly property string addWatchOnlyAccKeyUid: Constants.appTranslatableConstants.addAccountLabelOptionAddWatchOnlyAcc
|
readonly property string addWatchOnlyAccKeyUid: Constants.appTranslatableConstants.addAccountLabelOptionAddWatchOnlyAcc
|
||||||
filters: [
|
filters: [
|
||||||
FastExpressionFilter {
|
FastExpressionFilter {
|
||||||
|
enabled: production
|
||||||
expression: model.keyPair.keyUid !== originModelWithoutWatchOnlyAcc.addWatchOnlyAccKeyUid
|
expression: model.keyPair.keyUid !== originModelWithoutWatchOnlyAcc.addWatchOnlyAccKeyUid
|
||||||
expectedRoles: ["keyPair"]
|
expectedRoles: ["keyPair"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue