qml: show unrelated tx also in top InfoTextArea
This commit is contained in:
@@ -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
|
||||
? 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
|
||||
}
|
||||
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'))
|
||||
iconStyle: txdetails.isUnrelated
|
||||
? InfoTextArea.IconStyle.Warn
|
||||
: InfoTextArea.IconStyle.Info
|
||||
}
|
||||
|
||||
Label {
|
||||
|
||||
Reference in New Issue
Block a user