Skip to content
Snippets Groups Projects
Commit fcf62a13 authored by HJ's avatar HJ :fire:
Browse files

don't show to anons, make it possible to disable notification instance-wide

parent 59d160a6
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,9 @@ const UpdateNotification = {
}
},
shouldShow () {
return this.$store.state.serverSideStorage.flagStorage.updateCounter < CURRENT_UPDATE_COUNTER &&
return !this.$store.state.instance.disableUpdateNotification &&
this.$store.state.currentUser &&
this.$store.state.serverSideStorage.flagStorage.updateCounter < CURRENT_UPDATE_COUNTER &&
!this.$store.state.serverSideStorage.flagStorage.dontShowUpdateNotifs
}
},
......
<template>
<Modal
:is-open="shouldShow"
v-if="shouldShow"
:is-open="!!shouldShow"
class="UpdateNotification"
:no-background="true"
>
......
......@@ -41,6 +41,7 @@ const defaultState = {
logoMargin: '.2em',
logoMask: true,
logoLeft: false,
disableUpdateNotification: false,
minimalScopesMode: false,
nsfwCensorImage: undefined,
postContentType: 'text/plain',
......
......@@ -14,6 +14,7 @@
"logoMask": true,
"logoLeft": false,
"minimalScopesMode": false,
"disableUpdateNotification": false,
"nsfwCensorImage": "",
"postContentType": "text/plain",
"redirectRootLogin": "/main/friends",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment