Browse Source

qml: show unrelated tx also in top InfoTextArea

master
Sander van Grieken 3 years ago
parent
commit
7b475f58db
  1. 24
      electrum/gui/qml/components/TxDetails.qml

24
electrum/gui/qml/components/TxDetails.qml

@ -55,27 +55,17 @@ Pane {
Layout.columnSpan: 2
Layout.fillWidth: true
Layout.bottomMargin: constants.paddingLarge
visible: txdetails.canBump || txdetails.canCpfp || txdetails.canCancel || txdetails.canRemove
text: txdetails.canRemove
visible: txdetails.canBump || txdetails.canCpfp || txdetails.canCancel || txdetails.canRemove || txdetails.isUnrelated
text: txdetails.isUnrelated
? qsTr('Transaction is unrelated to this wallet')
: txdetails.canRemove
? qsTr('This transaction is local to your wallet. It has not been published yet.')
: qsTr('This transaction is still unconfirmed.') + '\n' + (txdetails.canCancel
? qsTr('You can bump its fee to speed up its confirmation, or cancel this transaction')
: qsTr('You can bump its fee to speed up its confirmation'))
}
RowLayout {
Layout.fillWidth: true
Layout.columnSpan: 2
visible: txdetails.isUnrelated
Image {
source: '../../icons/warning.png'
Layout.preferredWidth: constants.iconSizeSmall
Layout.preferredHeight: constants.iconSizeSmall
}
Label {
text: qsTr('Transaction is unrelated to this wallet')
color: Material.accentColor
}
iconStyle: txdetails.isUnrelated
? InfoTextArea.IconStyle.Warn
: InfoTextArea.IconStyle.Info
}
Label {

Loading…
Cancel
Save