qml: also add share option for fallback address in InvoiceDialog
This commit is contained in:
@@ -96,8 +96,7 @@ ElDialog {
|
|||||||
var dialog = app.genericShareDialog.createObject(app, {
|
var dialog = app.genericShareDialog.createObject(app, {
|
||||||
title: qsTr('Address'),
|
title: qsTr('Address'),
|
||||||
text: invoice.address
|
text: invoice.address
|
||||||
}
|
})
|
||||||
)
|
|
||||||
dialog.open()
|
dialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -390,11 +389,26 @@ ElDialog {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: invoice.invoiceType == Invoice.LightningInvoice && invoice.address
|
visible: invoice.invoiceType == Invoice.LightningInvoice && invoice.address
|
||||||
leftPadding: constants.paddingMedium
|
leftPadding: constants.paddingMedium
|
||||||
Label {
|
|
||||||
|
RowLayout {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: invoice.address
|
Label {
|
||||||
font.family: FixedFont
|
text: invoice.address
|
||||||
wrapMode: Text.Wrap
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user