aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-02-19 12:28:36 +0100
committerRoger Braun <roger@rogerbraun.net>2017-02-19 12:28:36 +0100
commit73f46bfba68b80dc09d070ebc53310802c9a2046 (patch)
treeb5db597aac3aac58e39b19691b31a3ca1c9d364e /src
parent8fb0ec985ae30ea476b1d1a710bc4a5011d0aaa3 (diff)
parentdf3ffdd9056ef7ebe451eaed4beaeafe20257818 (diff)
Merge branch 'clearnotifs' into develop
Diffstat (limited to 'src')
-rw-r--r--src/components/notifications/notifications.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index 7dbbf588..d6a6bdb5 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -25,7 +25,11 @@ const Notifications = {
},
watch: {
unseenCount (count) {
- this.$store.dispatch('setPageTitle', `(${count})`)
+ if (count > 0) {
+ this.$store.dispatch('setPageTitle', `(${count})`)
+ } else {
+ this.$store.dispatch('setPageTitle', '')
+ }
}
},
methods: {