commit: 73f46bfba68b80dc09d070ebc53310802c9a2046
parent: 8fb0ec985ae30ea476b1d1a710bc4a5011d0aaa3
Author: Roger Braun <roger@rogerbraun.net>
Date: Sun, 19 Feb 2017 12:28:36 +0100
Merge branch 'clearnotifs' into develop
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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: {