mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-17 02:42:54 -05:00
fix status action in view estimate
This commit is contained in:
@@ -37,6 +37,12 @@ export default {
|
||||
state.estimates[pos] = data.estimate
|
||||
},
|
||||
|
||||
[types.UPDATE_ESTIMATE_STATUS] (state, data) {
|
||||
let pos = state.estimates.findIndex(estimate => estimate.id === data.id)
|
||||
|
||||
state.estimates[pos].status = data.status
|
||||
},
|
||||
|
||||
[types.RESET_SELECTED_ESTIMATES] (state, data) {
|
||||
state.selectedEstimates = []
|
||||
state.selectAllField = false
|
||||
|
||||
Reference in New Issue
Block a user