Open popup detail view when opening from task overview
This commit is contained in:
parent
e74c72f486
commit
a822a07c89
2 changed files with 6 additions and 2 deletions
|
@ -58,7 +58,7 @@
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="tasks" v-if="tasks && tasks.length > 0" :class="{'short': isTaskEdit}">
|
<div class="tasks" v-if="tasks && tasks.length > 0" :class="{'short': isTaskEdit}">
|
||||||
<div class="task" v-for="t in tasks" :key="t.id">
|
<div class="task" v-for="t in tasks" :key="t.id">
|
||||||
<single-task-in-list :the-task="t" @taskUpdated="updateTasks"/>
|
<single-task-in-list :the-task="t" @taskUpdated="updateTasks" task-detail-route="task.detail"/>
|
||||||
<div @click="editTask(t.id)" class="icon settings" v-if="!list.isArchived">
|
<div @click="editTask(t.id)" class="icon settings" v-if="!list.isArchived">
|
||||||
<icon icon="pencil-alt"/>
|
<icon icon="pencil-alt"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<span>
|
<span>
|
||||||
<fancycheckbox v-model="task.done" @change="markAsDone" :disabled="isArchived"/>
|
<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 -->
|
<!-- 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'">
|
<span class="parent-tasks" v-if="typeof task.relatedTasks.parenttask !== 'undefined'">
|
||||||
<template v-for="(pt, i) in task.relatedTasks.parenttask">
|
<template v-for="(pt, i) in task.relatedTasks.parenttask">
|
||||||
|
@ -58,6 +58,10 @@
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
taskDetailRoute: {
|
||||||
|
type: String,
|
||||||
|
default: 'task.list.detail'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
theTask(newVal) {
|
theTask(newVal) {
|
||||||
|
|
Loading…
Reference in a new issue