mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
Merge branch 'master'
This commit is contained in:
@ -109,7 +109,7 @@ async function removeMultipleRecurringInvoices(id = null) {
|
|||||||
.deleteMultipleRecurringInvoices(id)
|
.deleteMultipleRecurringInvoices(id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
// refreshTable()
|
props.table && props.table.refresh()
|
||||||
recurringInvoiceStore.$patch((state) => {
|
recurringInvoiceStore.$patch((state) => {
|
||||||
state.selectedRecurringInvoices = []
|
state.selectedRecurringInvoices = []
|
||||||
state.selectAllField = false
|
state.selectAllField = false
|
||||||
|
|||||||
@ -278,12 +278,19 @@ export const useEstimateStore = (useWindow = false) => {
|
|||||||
axios
|
axios
|
||||||
.post(`/api/v1/estimates/${data.id}/status`, data)
|
.post(`/api/v1/estimates/${data.id}/status`, data)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
const notificationStore = useNotificationStore()
|
let pos = this.estimates.findIndex(
|
||||||
|
(estimate) => estimate.id === data.id
|
||||||
|
)
|
||||||
|
if (this.estimates[pos]) {
|
||||||
|
this.estimates[pos].status = 'ACCEPTED'
|
||||||
|
|
||||||
notificationStore.showNotification({
|
const notificationStore = useNotificationStore()
|
||||||
type: 'success',
|
|
||||||
message: global.t('estimates.marked_as_accepted_message'),
|
notificationStore.showNotification({
|
||||||
})
|
type: 'success',
|
||||||
|
message: global.t('estimates.marked_as_accepted_message'),
|
||||||
|
})
|
||||||
|
}
|
||||||
resolve(response)
|
resolve(response)
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user