qml: move max ln receive to ReceiveDetailsDialog, always show invoice fields on ReceiveDialog
This commit is contained in:
@@ -41,6 +41,32 @@ ElDialog {
|
|||||||
columnSpacing: constants.paddingSmall
|
columnSpacing: constants.paddingSmall
|
||||||
columns: 4
|
columns: 4
|
||||||
|
|
||||||
|
TextHighlightPane {
|
||||||
|
Layout.columnSpan: 4
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
|
visible: Daemon.currentWallet.lightningCanReceive
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
width: parent.width
|
||||||
|
spacing: constants.paddingXSmall
|
||||||
|
Label {
|
||||||
|
text: qsTr('Max amount over Lightning')
|
||||||
|
font.pixelSize: constants.fontSizeSmall
|
||||||
|
color: Material.accentColor
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
}
|
||||||
|
Image {
|
||||||
|
Layout.preferredWidth: constants.iconSizeSmall
|
||||||
|
Layout.preferredHeight: constants.iconSizeSmall
|
||||||
|
source: '../../icons/lightning.png'
|
||||||
|
}
|
||||||
|
FormattedAmount {
|
||||||
|
amount: Daemon.currentWallet.lightningCanReceive
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr('Message')
|
text: qsTr('Message')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,25 +182,6 @@ ElDialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Layout.alignment: Qt.AlignHCenter
|
|
||||||
visible: Daemon.currentWallet.isLightning
|
|
||||||
spacing: constants.paddingXSmall
|
|
||||||
Image {
|
|
||||||
Layout.preferredWidth: constants.iconSizeSmall
|
|
||||||
Layout.preferredHeight: constants.iconSizeSmall
|
|
||||||
source: '../../icons/lightning.png'
|
|
||||||
}
|
|
||||||
Label {
|
|
||||||
text: qsTr('can receive:')
|
|
||||||
font.pixelSize: constants.fontSizeSmall
|
|
||||||
color: Material.accentColor
|
|
||||||
}
|
|
||||||
FormattedAmount {
|
|
||||||
amount: Daemon.currentWallet.lightningCanReceive
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
height: 1
|
height: 1
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
@@ -221,23 +202,20 @@ ElDialog {
|
|||||||
text: request.status_str
|
text: request.status_str
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
visible: request.message
|
|
||||||
text: qsTr('Message')
|
text: qsTr('Message')
|
||||||
color: Material.accentColor
|
color: Material.accentColor
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
visible: request.message
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: request.message
|
text: request.message
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
visible: !request.amount.isEmpty
|
|
||||||
text: qsTr('Amount')
|
text: qsTr('Amount')
|
||||||
color: Material.accentColor
|
color: Material.accentColor
|
||||||
}
|
}
|
||||||
FormattedAmount {
|
FormattedAmount {
|
||||||
visible: !request.amount.isEmpty
|
valid: !request.amount.isEmpty
|
||||||
amount: request.amount
|
amount: request.amount
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user