Show parent tasks in task overview list (#41)
This commit is contained in:
parent
d041384999
commit
81e9eef154
2 changed files with 12 additions and 0 deletions
|
@ -34,6 +34,13 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<router-link :to="{ name: 'taskDetailView', params: { id: l.id } }" class="tasktext" :class="{ 'done': l.done}">
|
<router-link :to="{ name: 'taskDetailView', params: { id: l.id } }" class="tasktext" :class="{ 'done': l.done}">
|
||||||
|
<!-- Show any parent tasks to make it clear this task is a sub task of something -->
|
||||||
|
<span class="parent-tasks" v-if="typeof l.related_tasks.parenttask !== 'undefined'">
|
||||||
|
<template v-for="(pt, i) in l.related_tasks.parenttask">
|
||||||
|
{{ pt.text }}<template v-if="(i + 1) < l.related_tasks.parenttask.length">, </template>
|
||||||
|
</template>
|
||||||
|
>
|
||||||
|
</span>
|
||||||
{{l.text}}
|
{{l.text}}
|
||||||
<span class="tag" v-for="label in l.labels" :style="{'background': label.hex_color, 'color': label.textColor}" :key="label.id">
|
<span class="tag" v-for="label in l.labels" :style="{'background': label.hex_color, 'color': label.textColor}" :key="label.id">
|
||||||
<span>{{ label.title }}</span>
|
<span>{{ label.title }}</span>
|
||||||
|
|
|
@ -77,6 +77,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.parent-tasks {
|
||||||
|
color: lighten($dark, 50);
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.remove {
|
.remove {
|
||||||
color: $red;
|
color: $red;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue