qml: add missing button containers
This commit is contained in:
@@ -156,17 +156,21 @@ ElDialog {
|
||||
}
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
DialogButtonContainer {
|
||||
Layout.columnSpan: 2
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Close channel')
|
||||
icon.source: '../../icons/closebutton.png'
|
||||
enabled: !channeldetails.isClosing
|
||||
onClicked: {
|
||||
if (closetypegroup.checkedButton.closetype == 'local_force') {
|
||||
showBackupThenClose()
|
||||
} else {
|
||||
doCloseChannel()
|
||||
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Close channel')
|
||||
icon.source: '../../icons/closebutton.png'
|
||||
enabled: !channeldetails.isClosing
|
||||
onClicked: {
|
||||
if (closetypegroup.checkedButton.closetype == 'local_force') {
|
||||
showBackupThenClose()
|
||||
} else {
|
||||
doCloseChannel()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,15 +129,18 @@ ElDialog {
|
||||
}
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
DialogButtonContainer {
|
||||
Layout.topMargin: constants.paddingLarge
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Pay...')
|
||||
icon.source: '../../icons/confirmed.png'
|
||||
enabled: valid
|
||||
onClicked: {
|
||||
invoiceParser.lnurlGetInvoice(comment.text)
|
||||
dialog.close()
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Pay...')
|
||||
icon.source: '../../icons/confirmed.png'
|
||||
enabled: valid
|
||||
onClicked: {
|
||||
invoiceParser.lnurlGetInvoice(comment.text)
|
||||
dialog.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ ElDialog {
|
||||
|
||||
ColumnLayout {
|
||||
width: parent.width
|
||||
spacing: 0
|
||||
|
||||
GridLayout {
|
||||
id: rootLayout
|
||||
@@ -160,16 +161,19 @@ ElDialog {
|
||||
}
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
DialogButtonContainer {
|
||||
Layout.topMargin: constants.paddingLarge
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Withdraw...')
|
||||
icon.source: '../../icons/confirmed.png'
|
||||
enabled: valid && !requestDetails.busy
|
||||
onClicked: {
|
||||
var satsAmount = amountBtc.textAsSats.satsInt;
|
||||
requestDetails.lnurlRequestWithdrawal(satsAmount);
|
||||
dialog.close();
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr('Withdraw...')
|
||||
icon.source: '../../icons/confirmed.png'
|
||||
enabled: valid && !requestDetails.busy
|
||||
onClicked: {
|
||||
var satsAmount = amountBtc.textAsSats.satsInt;
|
||||
requestDetails.lnurlRequestWithdrawal(satsAmount);
|
||||
dialog.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user