1
0

feat: reduce eslint warnings (#2396)

Also added `Destructuring the 'props' will cause the value to lose reactivity` as a warning to prepare for the removal of the propsDestructure option in vite.

Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2396
Reviewed-by: konrad <k@knt.li>
Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Co-committed-by: Dominik Pschenitschni <mail@celement.de>
This commit is contained in:
Dominik Pschenitschni
2024-06-17 09:18:02 +00:00
committed by konrad
parent c6e934bd6b
commit 2004d129c3
12 changed files with 37 additions and 29 deletions

View File

@ -206,6 +206,7 @@ const props = defineProps({
required: true,
},
canWrite: {
type: Boolean,
default: true,
},
})

View File

@ -56,6 +56,7 @@ const props = defineProps({
required: true,
},
disabled: {
type: Boolean,
default: false,
},
modelValue: {

View File

@ -71,6 +71,7 @@ const props = defineProps({
default: 0,
},
disabled: {
type: Boolean,
default: false,
},
creatable: {

View File

@ -50,6 +50,7 @@ const props = defineProps({
type: Number,
},
disabled: {
type: Boolean,
default: false,
},
})

View File

@ -37,6 +37,7 @@ const props = defineProps({
default: 0,
},
disabled: {
type: Boolean,
default: false,
},
})

View File

@ -115,32 +115,32 @@
<span class="title">{{ rts.title }}</span>
<div class="tasks">
<div
v-for="t in rts.tasks"
:key="t.id"
v-for="task in rts.tasks"
:key="task.id"
class="task"
>
<div class="is-flex is-align-items-center">
<Fancycheckbox
v-model="t.done"
v-model="task.done"
class="task-done-checkbox"
@update:modelValue="toggleTaskDone(t)"
/>
<router-link
:to="{ name: route.name as string, params: { id: t.id } }"
:class="{ 'is-strikethrough': t.done}"
:to="{ name: route.name as string, params: { id: task.id } }"
:class="{ 'is-strikethrough': task.done}"
>
<span
v-if="t.projectId !== projectId"
v-if="task.projectId !== projectId"
class="different-project"
>
<span
v-if="t.differentProject !== null"
v-if="task.differentProject !== null"
v-tooltip="$t('task.relation.differentProject')"
>
{{ t.differentProject }} >
{{ task.differentProject }} >
</span>
</span>
{{ t.title }}
{{ task.title }}
</router-link>
</div>
<BaseButton
@ -148,7 +148,7 @@
class="remove"
@click="setRelationToDelete({
relationKind: rts.kind,
otherTaskId: t.id
otherTaskId: task.id
})"
>
<icon icon="trash-alt" />
@ -225,6 +225,7 @@ const props = defineProps({
default: 0,
},
editEnabled: {
type: Boolean,
default: true,
},
})