From af7f8400e901c2f4d9c5c4cca7614af62892a75e Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 3 Oct 2022 12:35:15 +0200 Subject: [PATCH] chore: small review adjustments --- src/components/tasks/partials/kanban-card.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/tasks/partials/kanban-card.vue b/src/components/tasks/partials/kanban-card.vue index f816f015..1ee64f36 100644 --- a/src/components/tasks/partials/kanban-card.vue +++ b/src/components/tasks/partials/kanban-card.vue @@ -6,7 +6,7 @@ 'draggable': !(loadingInternal || loading), 'has-light-text': color !== TASK_DEFAULT_COLOR && !colorIsDark(color), }" - :style="{'background-color': color !== TASK_DEFAULT_COLOR ? color : false}" + :style="{'background-color': color !== TASK_DEFAULT_COLOR ? color : undefined}" @click.exact="openTaskDetail()" @click.ctrl="() => toggleTaskDone(task)" @click.meta="() => toggleTaskDone(task)" @@ -44,11 +44,11 @@
@@ -69,10 +69,10 @@ import {ref, computed} from 'vue' import {useRouter} from 'vue-router' -import PriorityLabel from '../../../components/tasks/partials/priorityLabel.vue' -import User from '../../../components/misc/user.vue' +import PriorityLabel from '@/components/tasks/partials/priorityLabel.vue' +import User from '@/components/misc/user.vue' import Done from '@/components/misc/Done.vue' -import Labels from '../../../components/tasks/partials/labels.vue' +import Labels from '@/components/tasks/partials/labels.vue' import ChecklistSummary from './checklist-summary.vue' import {TASK_DEFAULT_COLOR, getHexColor} from '@/models/task' @@ -98,10 +98,9 @@ const color = computed(() => getHexColor(props.task.hexColor)) async function toggleTaskDone(task: ITask) { loadingInternal.value = true try { - const done = !task.done await useTaskStore().update({ ...task, - done, + done: !task.done, }) } finally { loadingInternal.value = false