forked from Public/monero-gui
Merge pull request #1768
02134c4 transfer: paste Payment URL to fill the payment form fields (xiphon)
This commit is contained in:
@@ -215,6 +215,18 @@ Rectangle {
|
||||
wrapMode: Text.WrapAnywhere
|
||||
addressValidation: true
|
||||
onInputLabelLinkActivated: { appWindow.showPageRequest("AddressBook") }
|
||||
pasteButton: true
|
||||
onPaste: function(clipboardText) {
|
||||
const parsed = walletManager.parse_uri_to_object(clipboardText);
|
||||
if (!parsed.error) {
|
||||
addressLine.text = parsed.address;
|
||||
paymentIdLine.text = parsed.payment_id;
|
||||
amountLine.text = parsed.amount;
|
||||
descriptionLine.text = parsed.tx_description;
|
||||
} else {
|
||||
addressLine.text = clipboardText;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StandardButton {
|
||||
|
||||
Reference in New Issue
Block a user