1
0

qml: open invoices list after saving invoice, add invoice to model instead of reloading the whole list

This commit is contained in:
Sander van Grieken
2022-10-05 11:07:40 +02:00
parent 090706bfd6
commit 488600788e
5 changed files with 17 additions and 4 deletions

View File

@@ -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()
}