diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-10 02:31:41 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-10 02:37:09 +0300 |
| commit | 2c0eb29b286edf57d75c6044855ea5be9187493b (patch) | |
| tree | b628aa739d4f52249743f25135c7a3fc5c8d9b2e /src/components/update_notification/update_notification.js | |
| parent | aa41cedd932e88b030ecc3cc54848b5aa300eec3 (diff) | |
more prefs storage work + move dontShowUpdateNotifs to prefs
Diffstat (limited to 'src/components/update_notification/update_notification.js')
| -rw-r--r-- | src/components/update_notification/update_notification.js | 4 |
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 () { |
