Directly link to the task for tasks on the start page
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-01-30 22:50:28 +01:00
parent 1170e030f6
commit c8130bef61
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 3 deletions

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}})
},
},
}