aboutsummaryrefslogtreecommitdiff
path: root/src/components/update_notification/update_notification.js
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2022-08-30 00:14:30 +0000
committertusooa <tusooa@kazv.moe>2022-08-30 00:14:30 +0000
commit8b25febe36a97d113c846928dab22ab36158ee07 (patch)
treef6f63b05e4bbc9d17258a4a559a2dc1970bbf047 /src/components/update_notification/update_notification.js
parent3b6c31f3b3d2326ffbe258c826f6dbd3f5374cf2 (diff)
parentdbb6f224425e059e2edc6018d0b009cc87a0aea4 (diff)
Merge branch 'navigation-update' into 'develop'
Navigation update + preferences storage (and some minor fixes) See merge request pleroma/pleroma-fe!1592
Diffstat (limited to 'src/components/update_notification/update_notification.js')
-rw-r--r--src/components/update_notification/update_notification.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/update_notification/update_notification.js b/src/components/update_notification/update_notification.js
index ba008d81..609842c4 100644
--- a/src/components/update_notification/update_notification.js
+++ b/src/components/update_notification/update_notification.js
@@ -38,7 +38,7 @@ const UpdateNotification = {
return !this.$store.state.instance.disableUpdateNotification &&
this.$store.state.users.currentUser &&
this.$store.state.serverSideStorage.flagStorage.updateCounter < CURRENT_UPDATE_COUNTER &&
- !this.$store.state.serverSideStorage.flagStorage.dontShowUpdateNotifs
+ !this.$store.state.serverSideStorage.prefsStorage.simple.dontShowUpdateNotifs
}
},
methods: {
@@ -48,7 +48,7 @@ const UpdateNotification = {
neverShowAgain () {
this.toggleShow()
this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
- this.$store.commit('setFlag', { flag: 'dontShowUpdateNotifs', value: 1 })
+ this.$store.commit('setPreference', { path: 'simple.dontShowUpdateNotifs', value: true })
this.$store.dispatch('pushServerSideStorage')
},
dismiss () {