diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-08 02:01:07 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-08 02:01:07 +0300 |
| commit | fcf62a13ed49359b6bc2e82e8d05f55bfe914803 (patch) | |
| tree | 683d8623140b75af1abe5473ab855485c60b0c64 /src/components/update_notification/update_notification.js | |
| parent | 59d160a6dd6dd1493494f28daf9c1ad44a3ce8e0 (diff) | |
don't show to anons, make it possible to disable notification instance-wide
Diffstat (limited to 'src/components/update_notification/update_notification.js')
| -rw-r--r-- | src/components/update_notification/update_notification.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/update_notification/update_notification.js b/src/components/update_notification/update_notification.js index 172be889..83fbf922 100644 --- a/src/components/update_notification/update_notification.js +++ b/src/components/update_notification/update_notification.js @@ -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 } }, |
