From f63ee29fac87489b754890a73f676bb143fb3b63 Mon Sep 17 00:00:00 2001
From: Henry Jameson
Date: Mon, 8 Aug 2022 02:14:09 +0300
Subject: [PATCH] proper links and fix user detection
---
.../update_notification.js | 2 +-
.../update_notification.scss | 1 +
.../update_notification.vue | 21 +++++++++++--------
src/i18n/en.json | 4 ++--
4 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/components/update_notification/update_notification.js b/src/components/update_notification/update_notification.js
index 83fbf922..399b8d46 100644
--- a/src/components/update_notification/update_notification.js
+++ b/src/components/update_notification/update_notification.js
@@ -31,7 +31,7 @@ const UpdateNotification = {
},
shouldShow () {
return !this.$store.state.instance.disableUpdateNotification &&
- this.$store.state.currentUser &&
+ this.$store.state.users.currentUser &&
this.$store.state.serverSideStorage.flagStorage.updateCounter < CURRENT_UPDATE_COUNTER &&
!this.$store.state.serverSideStorage.flagStorage.dontShowUpdateNotifs
}
diff --git a/src/components/update_notification/update_notification.scss b/src/components/update_notification/update_notification.scss
index c55bb192..43a82f16 100644
--- a/src/components/update_notification/update_notification.scss
+++ b/src/components/update_notification/update_notification.scss
@@ -69,6 +69,7 @@
position: relative;
shape-margin: 0.5em;
filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.5));
+ pointer-events: none;
}
.spacer-top {
diff --git a/src/components/update_notification/update_notification.vue b/src/components/update_notification/update_notification.vue
index 8cae3de9..75ac742c 100644
--- a/src/components/update_notification/update_notification.vue
+++ b/src/components/update_notification/update_notification.vue
@@ -1,6 +1,5 @@
{{ $t('update.big_update_content') }}
-
-
-
-
+
+
+
+