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

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
1 changed files with 12 additions and 10 deletions

View File

@ -536,17 +536,19 @@ const taskColor = ref<ITask['hexColor']>('')
const visible = ref(false)
const project = computed(() => projectStore.projects[task.value.projectId])
watchEffect(() => {
if (typeof project.value === 'undefined') {
// 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
// any the project views.
return
}
baseStore.handleSetCurrentProject({
project: project.value,
watch(
() => task.value?.projectId,
() => {
if (typeof project.value === 'undefined') {
// 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 any of the project views.
return
}
baseStore.handleSetCurrentProject({
project: project.value,
})
})
})
const canWrite = computed(() => (
task.value.maxRight !== null &&