qml: open invoices list after saving invoice, add invoice to model instead of reloading the whole list
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import QtQuick 2.6
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.0
|
||||
import QtQuick.Controls 2.14
|
||||
import QtQuick.Controls.Material 2.0
|
||||
@@ -299,6 +299,7 @@ ElDialog {
|
||||
visible: invoice_key == ''
|
||||
enabled: invoice.canSave
|
||||
onClicked: {
|
||||
app.stack.push(Qt.resolvedUrl('Invoices.qml'))
|
||||
invoice.save_invoice()
|
||||
dialog.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user