1
0

Open popup detail view when opening from task overview

This commit is contained in:
kolaente
2020-05-09 19:21:17 +02:00
parent e74c72f486
commit a822a07c89
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template>
<span>
<fancycheckbox v-model="task.done" @change="markAsDone" :disabled="isArchived"/>
<router-link :to="{ name: 'task.detail', params: { id: task.id } }" class="tasktext" :class="{ 'done': task.done}">
<router-link :to="{ name: taskDetailRoute, params: { id: task.id } }" class="tasktext" :class="{ 'done': task.done}">
<!-- Show any parent tasks to make it clear this task is a sub task of something -->
<span class="parent-tasks" v-if="typeof task.relatedTasks.parenttask !== 'undefined'">
<template v-for="(pt, i) in task.relatedTasks.parenttask">
@ -58,6 +58,10 @@
type: Boolean,
default: false,
},
taskDetailRoute: {
type: String,
default: 'task.list.detail'
}
},
watch: {
theTask(newVal) {