From fcf62a13ed49359b6bc2e82e8d05f55bfe914803 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 8 Aug 2022 02:01:07 +0300 Subject: don't show to anons, make it possible to disable notification instance-wide --- src/components/update_notification/update_notification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/components/update_notification/update_notification.js') 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 } }, -- cgit v1.2.3-70-g09d2