qml: show invoices/requests lists through long press
I think we can re-enable the requests list, because requests are now created explicitly by pressing the create request button. Since this is an advanced feature, it should not be in the way of people who do not want to see it. Here is a solution that might work.
This commit is contained in:
committed by
Sander van Grieken
parent
8a2372a133
commit
4647fda04f
@@ -48,18 +48,6 @@ ElDialog {
|
||||
ButtonContainer {
|
||||
Layout.fillWidth: true
|
||||
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: 1
|
||||
icon.source: '../../icons/tab_receive.png'
|
||||
text: qsTr('Saved Invoices')
|
||||
enabled: Daemon.currentWallet.invoiceModel.rowCount() // TODO: only count non-expired
|
||||
onClicked: {
|
||||
dialog.close()
|
||||
app.stack.push(Qt.resolvedUrl('Invoices.qml'))
|
||||
}
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredWidth: 1
|
||||
|
||||
@@ -188,8 +188,10 @@ Item {
|
||||
var dialog = receiveDetailsDialog.createObject(mainView)
|
||||
dialog.open()
|
||||
}
|
||||
onPressAndHold: {
|
||||
app.stack.push(Qt.resolvedUrl('ReceiveRequests.qml'))
|
||||
}
|
||||
}
|
||||
|
||||
FlatButton {
|
||||
visible: Daemon.currentWallet
|
||||
Layout.fillWidth: true
|
||||
@@ -197,6 +199,9 @@ Item {
|
||||
icon.source: '../../icons/tab_send.png'
|
||||
text: qsTr('Send')
|
||||
onClicked: openSendDialog()
|
||||
onPressAndHold: {
|
||||
app.stack.push(Qt.resolvedUrl('Invoices.qml'))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user