fix: Remove possibility to add watch accounts on release
This commit is contained in:
parent
4a6b622458
commit
566a954935
|
@ -74,7 +74,9 @@ StatusMenu {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusAction {
|
Loader {
|
||||||
|
active: !production
|
||||||
|
sourceComponent: StatusAction {
|
||||||
objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier)
|
objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier)
|
||||||
text: qsTr("Add watched address")
|
text: qsTr("Add watched address")
|
||||||
enabled: !root.account
|
enabled: !root.account
|
||||||
|
@ -83,4 +85,8 @@ StatusMenu {
|
||||||
root.addWatchOnlyAccountClicked()
|
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