diff options
| author | xiphon <xiphon@protonmail.com> | 2021-02-02 16:00:46 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2021-03-03 00:53:51 +0000 |
| commit | 92a2ae1a117eac6190f486cf48b6066fe7f205eb (patch) | |
| tree | 22b96350258dcb012ec612566da8faae9c60fb92 /pages/Transfer.qml | |
| parent | c073867657d877940ccd826451b3e583d7934231 (diff) | |
| download | monzero-gui-92a2ae1a117eac6190f486cf48b6066fe7f205eb.tar.gz monzero-gui-92a2ae1a117eac6190f486cf48b6066fe7f205eb.tar.xz monzero-gui-92a2ae1a117eac6190f486cf48b6066fe7f205eb.zip | |
TxConfirmationDialog: implement multiple recipients support, layout fixes
Diffstat (limited to 'pages/Transfer.qml')
| -rw-r--r-- | pages/Transfer.qml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml index 9a4d8b18..d4dd1d6e 100644 --- a/pages/Transfer.qml +++ b/pages/Transfer.qml @@ -44,8 +44,7 @@ import "../js/Utils.js" as Utils Rectangle { id: root - signal paymentClicked(string address, string paymentId, string amount, int mixinCount, - int priority, string description) + signal paymentClicked(var recipients, string paymentId, int mixinCount, int priority, string description) signal sweepUnmixableClicked() color: "transparent" @@ -124,6 +123,10 @@ Rectangle { priorityDropdown.currentIndex = 0 } + function getRecipients() { + return [{address: addressLine.text, amount: amountLine.text}]; + } + // Information dialog StandardDialog { // dynamically change onclose handler @@ -523,7 +526,7 @@ Rectangle { console.log("amount: " + amountLine.text) addressLine.text = addressLine.text.trim() setPaymentId(paymentIdLine.text.trim()); - root.paymentClicked(addressLine.text, paymentIdLine.text, amountLine.text, root.mixin, priority, descriptionLine.text) + root.paymentClicked(getRecipients(), paymentIdLine.text, root.mixin, priority, descriptionLine.text) } } } @@ -597,7 +600,7 @@ Rectangle { console.log("amount: " + amountLine.text) addressLine.text = addressLine.text.trim() setPaymentId(paymentIdLine.text.trim()); - root.paymentClicked(addressLine.text, paymentIdLine.text, amountLine.text, root.mixin, priority, descriptionLine.text) + root.paymentClicked(getRecipients(), paymentIdLine.text, root.mixin, priority, descriptionLine.text) } button2.text: qsTr("Sign (offline)") + translationManager.emptyString button2.enabled: !appWindow.viewOnly |
