Add route and logic to create a new invoice directly from the sidebar
This commit is contained in:
@@ -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, () => {
|
||||
|
||||
Reference in New Issue
Block a user