fix(task): don't reload the kanban board when opening a task
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kolaente 2023-09-04 20:27:55 +02:00
parent 7a9aa7771b
commit 86eff7d49e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -536,17 +536,19 @@ const taskColor = ref<ITask['hexColor']>('')
const visible = ref(false) const visible = ref(false)
const project = computed(() => projectStore.projects[task.value.projectId]) const project = computed(() => projectStore.projects[task.value.projectId])
watchEffect(() => { watch(
if (typeof project.value === 'undefined') { () => task.value?.projectId,
// assuming the task has not been loaded completely and thus the project id is 0. () => {
// This avoids flickering between a project background and none when opening the task detail view from if (typeof project.value === 'undefined') {
// any the project views. // assuming the task has not been loaded completely and thus the project id is 0.
return // This avoids flickering between a project background and none when opening the
} // task detail view from any of the project views.
baseStore.handleSetCurrentProject({ return
project: project.value, }
baseStore.handleSetCurrentProject({
project: project.value,
})
}) })
})
const canWrite = computed(() => ( const canWrite = computed(() => (
task.value.maxRight !== null && task.value.maxRight !== null &&