From 6a319154d94c51f0464e0de31c6f88fbe20defea Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 5 Apr 2022 19:22:15 +0300 Subject: teleport bread --- src/components/mobile_nav/mobile_nav.js | 3 +- src/components/mobile_nav/mobile_nav.vue | 5 +- src/components/notifications/notifications.js | 15 +++- src/components/notifications/notifications.vue | 116 +++++++++++++------------ 4 files changed, 75 insertions(+), 64 deletions(-) (limited to 'src/components') diff --git a/src/components/mobile_nav/mobile_nav.js b/src/components/mobile_nav/mobile_nav.js index 9e736cfb..877d52a9 100644 --- a/src/components/mobile_nav/mobile_nav.js +++ b/src/components/mobile_nav/mobile_nav.js @@ -78,7 +78,8 @@ const MobileNav = { this.$store.dispatch('logout') }, markNotificationsAsSeen () { - this.$refs.notifications.markAsSeen() + // this.$refs.notifications.markAsSeen() + this.$store.dispatch('markNotificationsAsSeen') }, onScroll ({ target: { scrollTop, clientHeight, scrollHeight } }) { if (scrollTop + clientHeight >= scrollHeight) { diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue index 09680910..6c810bba 100644 --- a/src/components/mobile_nav/mobile_nav.vue +++ b/src/components/mobile_nav/mobile_nav.vue @@ -69,12 +69,9 @@
-
-
-
-
-
- {{ $t('notifications.notifications') }} - {{ unseenCount }} -
- - -
-
+ +
+
-
- +
+ {{ $t('notifications.notifications') }} + {{ unseenCount }} +
+ +
-
- + -- cgit v1.2.3-70-g09d2