fix(gantt): update the gantt view when switching between projects

Resolves https://community.vikunja.io/t/listing-subprojects-tasks/1567/5
This commit is contained in:
kolaente 2023-09-06 13:25:27 +02:00
parent 1918947c0b
commit 184110b986
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ export function useRouteFilters<CurrentFilters extends Filters>(
const routeFromFiltersFullPath = computed(() => router.resolve(filtersToRoute(filters.value)).fullPath)
watch(
route,
route.value,
(route, oldRoute) => {
if (
route?.name !== oldRoute?.name ||

View File

@ -40,7 +40,7 @@
:default-task-end-date="defaultTaskEndDate"
@update:task="updateTask"
/>
<TaskForm v-if="canWrite" @create-task="addGanttTask" />
<TaskForm v-if="canWrite" @create-task="addGanttTask"/>
</card>
</div>
</template>
@ -115,7 +115,7 @@ const flatPickerDateRange = computed<Date[]>({
]),
set(newVal) {
const [dateFrom, dateTo] = newVal.map((date) => date?.toISOString())
// only set after whole range has been selected
if (!dateTo) return