Remember list view when navigating between lists

This commit is contained in:
kolaente 2020-05-21 11:12:59 +02:00
parent 978e7b4acb
commit 12727900de
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
5 changed files with 24 additions and 1 deletions

View file

@ -136,6 +136,10 @@
},
created() {
this.taskService = new TaskService()
// Save the current list view to local storage
// We use local storage and not vuex here to make it persistent across reloads.
localStorage.setItem('listView', this.$route.name)
},
methods: {
// This function initializes the tasks page and loads the first page of tasks