Prevent loading the list + kanban board again when closing the task popup
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-07-01 19:16:01 +02:00
parent cfe77268e1
commit c68886e1c0
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 2 deletions

View File

@ -69,6 +69,9 @@
background() {
return this.$store.state.background
},
currentList() {
return typeof this.$store.state.currentList === 'undefined' ? {id: 0} : this.$store.state.currentList
},
},
methods: {
loadList() {
@ -85,7 +88,10 @@
}
// 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') {
if (
this.$route.params.listId === this.listLoaded ||
typeof this.$route.params.listId === 'undefined' ||
this.$route.params.listId === this.currentList.id) {
return
}
@ -96,7 +102,6 @@
this.$route.name !== 'list.table' &&
this.$route.name !== 'list.kanban'
) {
const savedListView = getListView(this.$route.params.listId)
router.replace({name: savedListView, params: {id: this.$route.params.listId}})