feat: Disable request payment for testnet
This commit is contained in:
parent
68b942fe3b
commit
ccad5cfed9
|
@ -153,7 +153,7 @@ SplitView {
|
|||
readonly property SharedStores.RequestPaymentStore requestPaymentStore: SharedStores.RequestPaymentStore {
|
||||
currencyStore: SharedStores.CurrenciesStore {}
|
||||
flatNetworksModel: NetworksModel.flatNetworks
|
||||
processedAssetsModel: d.walletAssetsStore.renamedTokensBySymbolModel
|
||||
processedAssetsModel: d.walletAssetsStore.jointModel
|
||||
plainAssetsModel: d.walletAssetsStore.walletTokensStore.plainTokensBySymbolModel
|
||||
accountsModel: WalletAccountsModel {}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ StackLayout {
|
|||
required property SendStores.TransactionStore transactionStore
|
||||
required property WalletStore.WalletAssetsStore walletAssetsStore
|
||||
required property SharedStores.CurrenciesStore currencyStore
|
||||
property bool areTestNetworksEnabled
|
||||
|
||||
property var sectionItemModel
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ Item {
|
|||
property ProfileStores.ContactsStore contactsStore
|
||||
property var emojiPopup
|
||||
property var stickersPopup
|
||||
property bool areTestNetworksEnabled
|
||||
|
||||
property string activeChatId: parentModule && parentModule.activeItem.id
|
||||
property int chatsCount: parentModule && parentModule.model ? parentModule.model.count : 0
|
||||
|
@ -327,6 +328,7 @@ Item {
|
|||
emojiPopup: root.emojiPopup
|
||||
stickersPopup: root.stickersPopup
|
||||
chatType: root.activeChatType
|
||||
areTestNetworksEnabled: root.areTestNetworksEnabled
|
||||
|
||||
textInput.onTextChanged: {
|
||||
if (!!d.activeChatContentModule && textInput.text !== d.activeChatContentModule.inputAreaModule.preservedProperties.text) {
|
||||
|
|
|
@ -51,6 +51,7 @@ StatusSectionLayout {
|
|||
required property var sendModalPopup
|
||||
property var sectionItemModel
|
||||
property int joinedMembersCount
|
||||
property bool areTestNetworksEnabled
|
||||
|
||||
property var emojiPopup
|
||||
property var stickersPopup
|
||||
|
@ -242,6 +243,7 @@ StatusSectionLayout {
|
|||
sharedRootStore: root.sharedRootStore
|
||||
utilsStore: root.utilsStore
|
||||
rootStore: root.rootStore
|
||||
areTestNetworksEnabled: root.areTestNetworksEnabled
|
||||
createChatPropertiesStore: root.createChatPropertiesStore
|
||||
contactsStore: root.contactsStore
|
||||
stickersLoaded: root.stickersLoaded
|
||||
|
|
|
@ -48,6 +48,7 @@ Rectangle {
|
|||
property var stickersPopup: null
|
||||
// Use this to only enable the Connections only when this Input opens the Emoji popup
|
||||
property bool closeGifPopupAfterSelection: true
|
||||
property bool areTestNetworksEnabled
|
||||
|
||||
property bool emojiEvent: false
|
||||
property bool isColonPressed: false
|
||||
|
@ -1034,8 +1035,8 @@ Rectangle {
|
|||
StatusAction {
|
||||
text: qsTr("Add payment request")
|
||||
icon.name: "wallet"
|
||||
// TODO_ES disable for testnet (only production)
|
||||
// TODO_ES error message when disabled on testnet (only production)
|
||||
visibleOnDisabled: true
|
||||
enabled: !root.areTestNetworksEnabled
|
||||
onTriggered: control.openPaymentRequestPopup()
|
||||
}
|
||||
|
||||
|
@ -1273,7 +1274,6 @@ Rectangle {
|
|||
topPadding: 12
|
||||
imagePreviewArray: control.fileUrlsAndSources
|
||||
linkPreviewModel: control.linkPreviewModel
|
||||
requestPaymentModel: control.requestPaymentStore.requestPaymentModel
|
||||
showLinkPreviewSettings: control.askToEnableLinkPreview
|
||||
onImageRemoved: (index) => {
|
||||
//Just do a copy and replace the whole thing because it's a plain JS array and thre's no signal when a single item is removed
|
||||
|
@ -1292,7 +1292,6 @@ Rectangle {
|
|||
onDisableLinkPreview: () => control.disableLinkPreview()
|
||||
onDismissLinkPreviewSettings: () => control.dismissLinkPreviewSettings()
|
||||
onDismissLinkPreview: (index) => control.dismissLinkPreview(index)
|
||||
onPaymentRequestRemoved: (index) => control.requestPaymentStore.removePaymentRequest(index)
|
||||
}
|
||||
|
||||
RowLayout {
|
||||
|
|
Loading…
Reference in New Issue