fix(kanban): do not allow to create new tasks in saved filter
This commit is contained in:
parent
ed5feee33a
commit
82ee9f18eb
@ -156,7 +156,7 @@
|
|||||||
>
|
>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div
|
<div
|
||||||
v-if="canWrite"
|
v-if="canCreateTasks"
|
||||||
class="bucket-footer"
|
class="bucket-footer"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@ -392,6 +392,7 @@ const bucketDraggableComponentData = computed(() => ({
|
|||||||
const project = computed(() => props.projectId ? projectStore.projects[props.projectId] : null)
|
const project = computed(() => props.projectId ? projectStore.projects[props.projectId] : null)
|
||||||
const view = computed(() => project.value?.views.find(v => v.id === props.viewId) as IProjectView || null)
|
const view = computed(() => project.value?.views.find(v => v.id === props.viewId) as IProjectView || null)
|
||||||
const canWrite = computed(() => baseStore.currentProject?.maxRight > Rights.READ && view.value.bucketConfigurationMode === 'manual')
|
const canWrite = computed(() => baseStore.currentProject?.maxRight > Rights.READ && view.value.bucketConfigurationMode === 'manual')
|
||||||
|
const canCreateTasks = computed(() => canWrite.value && props.projectId > 0)
|
||||||
const buckets = computed(() => kanbanStore.buckets)
|
const buckets = computed(() => kanbanStore.buckets)
|
||||||
const loading = computed(() => kanbanStore.isLoading)
|
const loading = computed(() => kanbanStore.isLoading)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user