fix(favorites): allow marking favorite tasks as done from favorites pseudo project
Resolves https://www.reddit.com/r/Vikunja/comments/1bkrek7/tasks_listed_under_favourite_list_view_mode/
This commit is contained in:
parent
acf4e3aa18
commit
b5a88d8657
@ -66,7 +66,7 @@
|
||||
<SingleTaskInProject
|
||||
:show-list-color="false"
|
||||
:disabled="!canWrite"
|
||||
:can-mark-as-done="canWrite || isSavedFilter(project)"
|
||||
:can-mark-as-done="canWrite || isPseudoProject"
|
||||
:the-task="t"
|
||||
:all-tasks="allTasks"
|
||||
@taskUpdated="updateTasks"
|
||||
@ -195,6 +195,8 @@ const canWrite = computed(() => {
|
||||
return project.value.maxRight > Rights.READ && project.value.id > 0
|
||||
})
|
||||
|
||||
const isPseudoProject = computed(() => (project.value && isSavedFilter(project.value)) || project.value?.id === -1)
|
||||
|
||||
onMounted(async () => {
|
||||
await nextTick()
|
||||
ctaVisible.value = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user