1
0

qml: clicking on one of your own addresses on TxDetails page now takes you to AddressDetails page.

This commit is contained in:
Sander van Grieken
2023-09-25 17:53:18 +02:00
parent 3ff588049e
commit b846eabb70

View File

@@ -1,4 +1,4 @@
import QtQuick 2.6
import QtQuick 2.15
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.0
import QtQuick.Controls.Material 2.0
@@ -10,6 +10,7 @@ TextHighlightPane {
property variant model
property bool allowShare: true
property bool allowClickAddress: true
RowLayout {
width: parent.width
@@ -26,6 +27,14 @@ TextHighlightPane {
: model.is_billing
? constants.colorAddressBilling
: Material.foreground
TapHandler {
enabled: allowClickAddress && model.is_mine
onTapped: {
app.stack.push(Qt.resolvedUrl('../AddressDetails.qml'), {
address: model.address
})
}
}
}
Label {
text: Config.formatSats(model.value)