From e4b369009aa489fd63baad56da5abf6203329738 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 13 Jun 2024 17:01:04 +0200 Subject: [PATCH] fix(views): do not allow moving tasks or editing board when bucket mode is filter --- frontend/src/components/project/views/ProjectKanban.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/project/views/ProjectKanban.vue b/frontend/src/components/project/views/ProjectKanban.vue index 61b205db9..57b84ca9f 100644 --- a/frontend/src/components/project/views/ProjectKanban.vue +++ b/frontend/src/components/project/views/ProjectKanban.vue @@ -389,14 +389,12 @@ const bucketDraggableComponentData = computed(() => ({ {'dragging-disabled': !canWrite.value}, ], })) -const canWrite = computed(() => baseStore.currentProject?.maxRight > Rights.READ) const project = computed(() => projectId ? projectStore.projects[projectId] : null) - +const view = computed(() => project.value?.views.find(v => v.id === viewId) || null) +const canWrite = computed(() => baseStore.currentProject?.maxRight > Rights.READ && view.value.bucketConfigurationMode === 'manual') const buckets = computed(() => kanbanStore.buckets) const loading = computed(() => kanbanStore.isLoading) -const view = computed(() => project.value?.views.find(v => v.id === viewId) || null) - const taskLoading = computed(() => taskStore.isLoading || taskPositionService.value.loading) watch(