feat: show done tasks as strikethrough when searching for new tasks to relate

This commit is contained in:
kolaente 2022-10-06 22:41:48 +02:00
parent 5b733ffa8a
commit 74a9b9ab1b
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -37,7 +37,11 @@
@create="createAndRelateTask" @create="createAndRelateTask"
> >
<template #searchResult="{option: task}"> <template #searchResult="{option: task}">
<span v-if="typeof task !== 'string'" class="search-result"> <span
v-if="typeof task !== 'string'"
class="search-result"
:class="{'is-strikethrough': task.done}"
>
<span <span
class="different-list" class="different-list"
v-if="task.listId !== listId" v-if="task.listId !== listId"