mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-28 08:21:08 -04:00
Do not prompt to update invoice client/team details when closing client/team modal.
Always pass invoice id when updating. When changing team info re-prefill invoice team info.
This commit is contained in:
@ -15,7 +15,9 @@ export default {
|
||||
},
|
||||
async updateInvoiceClientField({ dispatch }, payload) {
|
||||
await dispatch('invoiceClientFieldProps', payload);
|
||||
return dispatch('invoices/updateInvoice', null, { root: true });
|
||||
return dispatch('invoices/updateInvoice', {
|
||||
invoiceId: payload.invoiceId,
|
||||
}, { root: true });
|
||||
},
|
||||
async removeInvoiceClientFields(store, invoiceId) {
|
||||
return InvoiceClientField.delete(field => field.invoice_id === invoiceId);
|
||||
|
||||
Reference in New Issue
Block a user