Add route and logic to create a new invoice directly from the sidebar

This commit is contained in:
vollstock committed 2025-10-22 16:52:16 +02:00
1 parent 914a085e25
commit a1c56ad5a5
3 files changed
+11 -3

No files matched your search

+4
View File
@@ -39,6 +39,10 @@ onMounted(async () => {
customersData.value = customerResponse.data as Customer[]
searchField.value = document.getElementById('search')
let queryString = window.location.search
let params = new URLSearchParams(queryString)
if (params.get('action') == 'new') showDetail(newInvoice())
})
watch(invoicesData, () => {