Browse Source

qml: also add share option for fallback address in InvoiceDialog

master
Sander van Grieken 2 years ago
parent
commit
af61b9d86b
  1. 26
      electrum/gui/qml/components/InvoiceDialog.qml

26
electrum/gui/qml/components/InvoiceDialog.qml

@ -96,8 +96,7 @@ ElDialog {
var dialog = app.genericShareDialog.createObject(app, {
title: qsTr('Address'),
text: invoice.address
}
)
})
dialog.open()
}
}
@ -390,11 +389,26 @@ ElDialog {
Layout.fillWidth: true
visible: invoice.invoiceType == Invoice.LightningInvoice && invoice.address
leftPadding: constants.paddingMedium
Label {
RowLayout {
width: parent.width
text: invoice.address
font.family: FixedFont
wrapMode: Text.Wrap
Label {
text: invoice.address
font.family: FixedFont
Layout.fillWidth: true
wrapMode: Text.Wrap
}
ToolButton {
icon.source: '../../icons/share.png'
icon.color: 'transparent'
onClicked: {
var dialog = app.genericShareDialog.createObject(app, {
title: qsTr('Address'),
text: invoice.address
})
dialog.open()
}
}
}
}
}

Loading…
Cancel
Save