clean up list of outputs in ConfirmTxDialog
This commit is contained in:
@@ -196,13 +196,31 @@ Dialog {
|
|||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: finalizer.outputs
|
model: finalizer.outputs
|
||||||
delegate: RowLayout {
|
delegate: TextHighlightPane {
|
||||||
Layout.columnSpan: 2
|
Layout.columnSpan: 2
|
||||||
Label {
|
Layout.fillWidth: true
|
||||||
text: modelData.address
|
padding: 0
|
||||||
}
|
leftPadding: constants.paddingSmall
|
||||||
Label {
|
RowLayout {
|
||||||
text: modelData.value_sats
|
width: parent.width
|
||||||
|
Label {
|
||||||
|
text: modelData.address
|
||||||
|
Layout.fillWidth: true
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
font.pixelSize: constants.fontSizeLarge
|
||||||
|
font.family: FixedFont
|
||||||
|
color: modelData.is_mine ? constants.colorMine : Material.foreground
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
text: Config.formatSats(modelData.value_sats)
|
||||||
|
font.pixelSize: constants.fontSizeMedium
|
||||||
|
font.family: FixedFont
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
text: Config.baseUnit
|
||||||
|
font.pixelSize: constants.fontSizeMedium
|
||||||
|
color: Material.accentColor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -245,7 +245,8 @@ class QETxFinalizer(QObject):
|
|||||||
for o in tx.outputs():
|
for o in tx.outputs():
|
||||||
outputs.append({
|
outputs.append({
|
||||||
'address': o.get_ui_address_str(),
|
'address': o.get_ui_address_str(),
|
||||||
'value_sats': o.value
|
'value_sats': o.value,
|
||||||
|
'is_mine': self._wallet.wallet.is_mine(o.get_ui_address_str())
|
||||||
})
|
})
|
||||||
self.outputs = outputs
|
self.outputs = outputs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user