Skip to content

Commit

Permalink
chore(tasks): move drag options to direct attributes instead of v-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
kolaente committed Sep 18, 2024
1 parent 1d352fc commit f4d6285
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/components/project/views/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

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

0 comments on commit f4d6285

Please sign in to comment.