1
0

Fix saving showing archived setting

This commit is contained in:
kolaente
2021-06-03 15:31:39 +02:00
parent 0f42ed3cf7
commit 4a3b4982ab
4 changed files with 51 additions and 8 deletions

View File

@ -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))
},
},
}