qml: remove Dialog standardButtons everywhere
This commit is contained in:
@@ -13,8 +13,7 @@ ElDialog {
|
||||
height: parent.height
|
||||
|
||||
title: qsTr('Opening Channel...')
|
||||
standardButtons: Dialog.Close
|
||||
footer.visible: allowClose // work around standardButtons not really mutable to/from zero buttons
|
||||
|
||||
allowClose: false
|
||||
|
||||
modal: true
|
||||
|
||||
@@ -15,7 +15,6 @@ ElDialog {
|
||||
property string channelid
|
||||
|
||||
title: qsTr('Close Channel')
|
||||
standardButtons: closing ? 0 : Dialog.Cancel
|
||||
iconSource: Qt.resolvedUrl('../../icons/lightning_disconnected.png')
|
||||
|
||||
modal: true
|
||||
|
||||
@@ -30,8 +30,6 @@ ElDialog {
|
||||
height: parent.height
|
||||
padding: 0
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -21,8 +21,6 @@ ElDialog {
|
||||
height: parent.height
|
||||
padding: 0
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -19,7 +19,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
|
||||
@@ -17,7 +17,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
|
||||
@@ -11,7 +11,6 @@ ElDialog {
|
||||
|
||||
property bool valid: false
|
||||
|
||||
standardButtons: Dialog.Close
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -11,7 +11,6 @@ ElDialog {
|
||||
|
||||
property bool valid: false
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -17,7 +17,6 @@ ElDialog {
|
||||
signal invoiceAmountChanged
|
||||
|
||||
title: qsTr('Invoice')
|
||||
standardButtons: invoice_key != '' ? Dialog.Close : Dialog.Cancel
|
||||
iconSource: Qt.resolvedUrl('../../icons/tab_send.png')
|
||||
|
||||
padding: 0
|
||||
|
||||
@@ -16,7 +16,6 @@ ElDialog {
|
||||
height: parent.height
|
||||
|
||||
title: qsTr('Paying Lightning Invoice...')
|
||||
standardButtons: Dialog.Close
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
@@ -35,14 +34,12 @@ ElDialog {
|
||||
name: 'success'
|
||||
PropertyChanges { target: spinner; running: false }
|
||||
PropertyChanges { target: helpText; text: qsTr('Paid!') }
|
||||
// PropertyChanges { target: dialog; standardButtons: Dialog.Ok }
|
||||
PropertyChanges { target: icon; source: '../../icons/confirmed.png' }
|
||||
},
|
||||
State {
|
||||
name: 'failed'
|
||||
PropertyChanges { target: spinner; running: false }
|
||||
PropertyChanges { target: helpText; text: qsTr('Payment failed') }
|
||||
// PropertyChanges { target: dialog; standardButtons: Dialog.Ok }
|
||||
PropertyChanges { target: errorText; visible: true }
|
||||
PropertyChanges { target: icon; source: '../../icons/warning.png' }
|
||||
}
|
||||
|
||||
@@ -15,8 +15,6 @@ ElDialog {
|
||||
|
||||
property InvoiceParser invoiceParser
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -15,7 +15,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Cancel
|
||||
padding: 0
|
||||
|
||||
width: parent.width
|
||||
|
||||
@@ -20,8 +20,6 @@ ElDialog {
|
||||
property string name
|
||||
property string path
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -18,8 +18,6 @@ ElDialog {
|
||||
property bool _waiting: false
|
||||
property string _otpError
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -19,7 +19,7 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
anchors.centerIn: parent
|
||||
padding: 0
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ ElDialog {
|
||||
|
||||
focus: true
|
||||
|
||||
standardButtons: canCancel ? Dialog.Cancel : 0
|
||||
closePolicy: canCancel ? Popup.CloseOnEscape | Popup.CloseOnPressOutside : Popup.NoAutoClose
|
||||
|
||||
property bool canCancel: true
|
||||
|
||||
@@ -14,7 +14,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
|
||||
@@ -21,8 +21,6 @@ ElDialog {
|
||||
height: parent.height
|
||||
padding: 0
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -21,8 +21,6 @@ ElDialog {
|
||||
height: parent.height
|
||||
padding: 0
|
||||
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -19,7 +19,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Cancel
|
||||
iconSource: Qt.resolvedUrl('../../icons/pen.png')
|
||||
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -23,7 +23,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
iconSource: Qt.resolvedUrl('../../icons/tab_receive.png')
|
||||
|
||||
Overlay.modal: Rectangle {
|
||||
|
||||
@@ -21,7 +21,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
|
||||
@@ -16,7 +16,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
|
||||
Overlay.modal: Rectangle {
|
||||
color: "#aa000000"
|
||||
@@ -83,7 +82,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Ok
|
||||
|
||||
Overlay.modal: Rectangle {
|
||||
color: "#aa000000"
|
||||
|
||||
@@ -14,7 +14,6 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
standardButtons: Dialog.Close
|
||||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
|
||||
@@ -15,7 +15,6 @@ ElDialog {
|
||||
|
||||
title: qsTr('Lightning Swap')
|
||||
iconSource: Qt.resolvedUrl('../../icons/update.png')
|
||||
standardButtons: Dialog.Cancel
|
||||
|
||||
modal: true
|
||||
parent: Overlay.overlay
|
||||
|
||||
Reference in New Issue
Block a user