Directly link to the task for tasks on the start page

This commit is contained in:
kolaente 2020-01-30 22:50:28 +01:00
parent 1170e030f6
commit c8130bef61
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -8,7 +8,7 @@
</template>
<div class="spinner" :class="{ 'is-loading': taskService.loading}"></div>
<div class="tasks" v-if="tasks && tasks.length > 0">
<div @click="gotoList(l.listID)" class="task" v-for="l in undoneTasks" :key="l.id">
<div @click="gotoTask(l)" class="task" v-for="l in undoneTasks" :key="l.id">
<label :for="l.id">
<div class="fancycheckbox">
<input type="checkbox" :id="l.id" :checked="l.done" style="display: none;" disabled>
@ -83,8 +83,8 @@
this.error(e, this)
})
},
gotoList(lid) {
router.push({name: 'showList', params: {id: lid}})
gotoTask(task) {
router.push({name: 'taskDetailView', params: {id: task.id}})
},
},
}