This version is finished
This commit is contained in:
parent
972914691b
commit
a5b047887d
2 changed files with 4 additions and 6 deletions
File diff suppressed because one or more lines are too long
|
@ -63,9 +63,7 @@
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<router-link :to="{ name: 'taskdetails', params: { id: task.id }}">
|
|
||||||
<img src="/img/see.svg" alt="Details" width="20" />
|
|
||||||
</router-link>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -99,7 +97,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
disableTask: function(task_id, current_status) {
|
disableTask: function(task_id, current_status) {
|
||||||
this.$http.post('/api/toggleTaskStatus/'+task_id, {
|
this.$http.patch('/api/toggleTaskStatus/'+task_id, {
|
||||||
active: + !current_status
|
active: + !current_status
|
||||||
})
|
})
|
||||||
.then(response => this.$store.commit('updateTask', response.data))
|
.then(response => this.$store.commit('updateTask', response.data))
|
||||||
|
|
Loading…
Add table
Reference in a new issue