From 0a86d39ba9cf48fc0b4fb6d91b0d5eff404b2a66 Mon Sep 17 00:00:00 2001 From: shpuld Date: Thu, 14 Mar 2019 20:40:56 +0200 Subject: [PATCH] remove notifications from sidebar, make notifications appear on login only --- src/components/mobile_nav/mobile_nav.js | 3 +++ src/components/mobile_nav/mobile_nav.vue | 6 +++--- src/components/side_drawer/side_drawer.vue | 5 ----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/mobile_nav/mobile_nav.js b/src/components/mobile_nav/mobile_nav.js index 88fab656..fd373ac1 100644 --- a/src/components/mobile_nav/mobile_nav.js +++ b/src/components/mobile_nav/mobile_nav.js @@ -13,6 +13,9 @@ const MobileNav = { notificationsOpen: false }), computed: { + currentUser () { + return this.$store.state.users.currentUser + }, unseenNotifications () { return unseenNotificationsFromStore(this.$store) }, diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue index af2d6d5a..cb1aaa46 100644 --- a/src/components/mobile_nav/mobile_nav.vue +++ b/src/components/mobile_nav/mobile_nav.vue @@ -8,18 +8,18 @@ {{sitename}}
- +
- Notifications + {{$t('notifications.notifications')}}
-
+
diff --git a/src/components/side_drawer/side_drawer.vue b/src/components/side_drawer/side_drawer.vue index 95ee21b4..27db12d7 100644 --- a/src/components/side_drawer/side_drawer.vue +++ b/src/components/side_drawer/side_drawer.vue @@ -20,11 +20,6 @@ {{ $t("login.login") }} -
  • - - {{ $t("notifications.notifications") }} {{ unseenNotificationsCount > 0 ? `(${unseenNotificationsCount})` : '' }} - -
  • {{ $t("nav.dms") }}