Adding loader
This commit is contained in:
parent
e344d5ca38
commit
6ca118f717
2 changed files with 5 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
@ -99,13 +99,15 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
disableTask: function(task_id, current_status) {
|
disableTask: function(task_id, current_status) {
|
||||||
//this.loading = this.$loading.show()
|
this.loading = this.$loading.show()
|
||||||
this.$http.patch('/api/toggleTaskStatus/'+task_id, {
|
this.$http.patch('/api/toggleTaskStatus/'+task_id, {
|
||||||
active: + !current_status
|
active: + !current_status
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$store.commit('updateTask', response.data)
|
this.$store.commit('updateTask', response.data)
|
||||||
//this.loading = this.$loading.hide()
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.loading.hide()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue