Fix saving showing archived setting
This commit is contained in:
parent
0f42ed3cf7
commit
4a3b4982ab
4 changed files with 51 additions and 8 deletions
|
|
@ -108,7 +108,7 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
this.showArchived = localStorage.getItem('showArchived') ?? false
|
||||
this.showArchived = JSON.parse(localStorage.getItem('showArchived')) ?? false
|
||||
this.loadBackgroundsForLists()
|
||||
},
|
||||
mounted() {
|
||||
|
|
@ -147,7 +147,7 @@ export default {
|
|||
.catch(e => this.error(e, this))
|
||||
},
|
||||
saveShowArchivedState() {
|
||||
localStorage.setItem('showArchived', this.showArchived)
|
||||
localStorage.setItem('showArchived', JSON.stringify(this.showArchived))
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue