fix(task): don't reload the kanban board when opening a task
This commit is contained in:
parent
7a9aa7771b
commit
86eff7d49e
@ -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 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user