don't show to anons, make it possible to disable notification instance-wide
This commit is contained in:
parent
59d160a6dd
commit
fcf62a13ed
4 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue