1
0

Don't show the list color in the list view

This commit is contained in:
kolaente
2021-02-20 15:54:12 +01:00
parent 8e2dfcffd5
commit 074b7e53f5
3 changed files with 22 additions and 1 deletions

View File

@ -2,9 +2,10 @@
<div :class="{'is-loading': taskService.loading}" class="task loader-container">
<fancycheckbox :disabled="isArchived || disabled" @change="markAsDone" v-model="task.done"/>
<span
v-if="showListColor && listColor !== ''"
:style="{backgroundColor: listColor }"
class="color-bubble"
v-if="listColor !== ''">
>
</span>
<router-link
:to="{ name: taskDetailRoute, params: { id: task.id } }"
@ -131,6 +132,10 @@ export default {
type: Boolean,
default: false,
},
showListColor: {
type: Boolean,
default: true,
}
},
watch: {
theTask(newVal) {

View File

@ -92,6 +92,7 @@
<div class="tasks-container">
<div :class="{'short': isTaskEdit}" class="tasks mt-0" v-if="tasks && tasks.length > 0">
<single-task-in-list
:show-list-color="false"
:disabled="!canWrite"
:key="t.id"
:the-task="t"