Remember list view when navigating between lists
This commit is contained in:
parent
978e7b4acb
commit
12727900de
5 changed files with 24 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue