mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2025-10-28 16:31:07 -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:
@ -101,7 +101,10 @@ export default {
|
||||
this.$store.dispatch('invoices/getInvoice', this.$route.params.id);
|
||||
},
|
||||
updateProp(props) {
|
||||
this.$store.dispatch('invoices/updateInvoice', props);
|
||||
this.$store.dispatch('invoices/updateInvoice', {
|
||||
props,
|
||||
invoiceId: this.invoice.id,
|
||||
});
|
||||
},
|
||||
addRow() {
|
||||
this.$store.dispatch('invoiceRows/addRow', this.invoice.id);
|
||||
|
||||
Reference in New Issue
Block a user