From 7873896a4ad38c4bc1782131cae6d3e11792e430 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 23 Jun 2020 22:51:10 +0200 Subject: [PATCH] Fix not showing changes in kanban when switching between views --- src/views/list/ShowList.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/list/ShowList.vue b/src/views/list/ShowList.vue index e6ac28f6d..a5d8da89b 100644 --- a/src/views/list/ShowList.vue +++ b/src/views/list/ShowList.vue @@ -73,6 +73,17 @@ methods: { loadList() { + // This invalidates the loaded list at the kanban board which lets it reload its content when + // switched to it. This ensures updates done to tasks in the gantt or list views are consistently + // shown in all views while preventing reloads when closing a task popup. + // We don't do this for the table view because that does not change tasks. + if ( + this.$route.name === 'list.list' || + this.$route.name === 'list.gantt' + ) { + this.$store.commit('kanban/setListId', 0) + } + // Don't load the list if we either already loaded it or aren't dealing with a list at all currently if (this.$route.params.listId === this.listLoaded || typeof this.$route.params.listId === 'undefined') { return