From c49345c31b7fb80d9e8012275a61e59b1f8facbf Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 30 Jan 2021 20:59:42 +0100 Subject: [PATCH] Persist show archived state --- src/views/namespaces/ListNamespaces.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/namespaces/ListNamespaces.vue b/src/views/namespaces/ListNamespaces.vue index 3dffb6a4..922757ff 100644 --- a/src/views/namespaces/ListNamespaces.vue +++ b/src/views/namespaces/ListNamespaces.vue @@ -7,7 +7,7 @@ Create saved filter - + Show Archived @@ -99,6 +99,7 @@ export default { } }, created() { + this.showArchived = localStorage.getItem('showArchived') ?? false this.loadBackgroundsForLists() }, mounted() { @@ -136,6 +137,9 @@ export default { this.$store.dispatch('lists/toggleListFavorite', list) .catch(e => this.error(e, this)) }, + saveShowArchivedState() { + localStorage.setItem('showArchived', this.showArchived) + }, }, }