diff --git a/ui/imports/shared/popups/SignTransactionModal.qml b/ui/imports/shared/popups/SignTransactionModal.qml index bdd3f7eed6..c25bf5532a 100644 --- a/ui/imports/shared/popups/SignTransactionModal.qml +++ b/ui/imports/shared/popups/SignTransactionModal.qml @@ -89,7 +89,7 @@ StatusModal { initialItem: groupPreview isLastGroup: stack.currentGroup === groupSignTx onGroupActivated: { - root.title = group.headerText + root.header.title = group.headerText btnNext.text = group.footerText } TransactionFormGroup { @@ -126,8 +126,8 @@ StatusModal { RecipientSelector { id: selectRecipient visible: false - accounts: root.store.walletModelInst.accountsView.accounts - contacts: root.store.profileModelInst.contacts.addedContacts + accounts: root.store.accounts + contacts: root.store.addedContacts selectedRecipient: root.selectedRecipient readOnly: true } @@ -282,7 +282,6 @@ StatusModal { rightButtons: [ StatusButton { id: btnNext - anchors.right: parent.right //% "Next" text: qsTrId("next") enabled: stack.currentGroup.isValid && !stack.currentGroup.isPending diff --git a/ui/imports/shared/views/chat/TransactionBubbleView.qml b/ui/imports/shared/views/chat/TransactionBubbleView.qml index eed0499966..a72f96b53f 100644 --- a/ui/imports/shared/views/chat/TransactionBubbleView.qml +++ b/ui/imports/shared/views/chat/TransactionBubbleView.qml @@ -4,6 +4,7 @@ import shared 1.0 import shared.panels 1.0 import shared.popups 1.0 import shared.views.chat 1.0 +import shared.controls 1.0 import shared.controls.chat 1.0 Item { @@ -189,7 +190,7 @@ Item { SendTransactionButton { // outgoing: root.outgoing - acc: root.store.walletModelInst.accountsView.focusedAccount + acc: root.store.currentAccount selectedAsset: token selectedAmount: tokenAmount selectedFiatAmount: fiatValue @@ -218,17 +219,21 @@ Item { Component { id: signTxComponent SignTransactionModal { + anchors.centerIn: parent store: root.store - selectedAsset: root.selectedAsset - selectedAmount: root.selectedAmount - selectedRecipient: root.selectedRecipient - selectedFiatAmount: root.selectedFiatAmount - onOpened: { - root.store.walletModelInst.gasView.getGasPrice(); - } - onClosed: { - destroy(); + selectedAsset: token + selectedAmount: tokenAmount + selectedRecipient: { + return { + address: commandParametersObject.address, + identicon: root.store.chatsModelInst.channelView.activeChannel.identicon, + name: root.store.chatsModelInst.channelView.activeChannel.name, + type: RecipientSelector.Type.Contact + } } + selectedFiatAmount: fiatValue + onOpened: root.store.walletModelInst.gasView.getGasPrice(); + onClosed: destroy(); } }