diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-19 12:28:36 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-19 12:28:36 +0100 |
| commit | 73f46bfba68b80dc09d070ebc53310802c9a2046 (patch) | |
| tree | b5db597aac3aac58e39b19691b31a3ca1c9d364e | |
| parent | 8fb0ec985ae30ea476b1d1a710bc4a5011d0aaa3 (diff) | |
| parent | df3ffdd9056ef7ebe451eaed4beaeafe20257818 (diff) | |
Merge branch 'clearnotifs' into develop
| -rw-r--r-- | src/components/notifications/notifications.js | 6 |
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: { |
