1
0

chore(tasks): move drag options to direct attributes instead of v-bind

(cherry picked from commit f4d628550f361fb514bdc887727ca542958520ef)
This commit is contained in:
kolaente 2024-09-18 16:34:24 +02:00
parent 2b0fbe2575
commit 9e5d6bad8d
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -45,7 +45,6 @@
<draggable <draggable
v-if="tasks && tasks.length > 0" v-if="tasks && tasks.length > 0"
v-bind="DRAG_OPTIONS"
v-model="tasks" v-model="tasks"
group="tasks" group="tasks"
handle=".handle" handle=".handle"
@ -59,6 +58,8 @@
}, },
type: 'transition-group' type: 'transition-group'
}" }"
:animation="100"
ghost-class="task-ghost"
@start="() => drag = true" @start="() => drag = true"
@end="saveTaskPosition" @end="saveTaskPosition"
> >
@ -128,10 +129,6 @@ const props = defineProps<{
const ctaVisible = ref(false) const ctaVisible = ref(false)
const drag = ref(false) const drag = ref(false)
const DRAG_OPTIONS = {
animation: 100,
ghostClass: 'task-ghost',
} as const
const { const {
tasks: allTasks, tasks: allTasks,