aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2018-12-28 21:39:54 +0200
committershpuld <shp@cock.li>2018-12-28 21:39:54 +0200
commit85c058e95c04245dacf3ffb6b45a6eceb3253e7b (patch)
treee4a60a67ead56c8d4bdf675bfcb3a1fe914dc7b9 /src/App.js
parent47520818180eb9f0eb8d98fbed716ce8c72a46c1 (diff)
New routes, notifications, other impovements in side drwaer
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/App.js b/src/App.js
index 68fae50e..1132110c 100644
--- a/src/App.js
+++ b/src/App.js
@@ -7,6 +7,7 @@ import FeaturesPanel from './components/features_panel/features_panel.vue'
import WhoToFollowPanel from './components/who_to_follow_panel/who_to_follow_panel.vue'
import ChatPanel from './components/chat_panel/chat_panel.vue'
import SideDrawer from './components/side_drawer/side_drawer.vue'
+import { unseenNotificationsFromStore } from './services/notification_utils/notification_utils'
export default {
name: 'app',
@@ -75,12 +76,15 @@ export default {
sitename () { return this.$store.state.instance.name },
chat () { return this.$store.state.chat.channel.state === 'joined' },
suggestionsEnabled () { return this.$store.state.instance.suggestionsEnabled },
- showInstanceSpecificPanel () { return this.$store.state.instance.showInstanceSpecificPanel }
+ showInstanceSpecificPanel () { return this.$store.state.instance.showInstanceSpecificPanel },
+ unseenNotifications () {
+ return unseenNotificationsFromStore(this.$store)
+ },
+ unseenNotificationsCount () {
+ return this.unseenNotifications.length
+ }
},
methods: {
- activatePanel (panelName) {
- this.mobileActivePanel = panelName
- },
scrollToTop () {
window.scrollTo(0, 0)
},