aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-02-19 12:19:47 +0100
committerRoger Braun <roger@rogerbraun.net>2017-02-19 12:19:47 +0100
commitdf3ffdd9056ef7ebe451eaed4beaeafe20257818 (patch)
treee1932e8609c0bb820d72a6e42ab4bdd0af0fdf2d /src/components/notifications/notifications.js
parentaf913463289d27155993e1621e47ee9a57681079 (diff)
Follow style guide (https://github.com/feross/standard)
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index e872a2e5..d6a6bdb5 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -25,8 +25,11 @@ const Notifications = {
},
watch: {
unseenCount (count) {
- if (count>0) this.$store.dispatch('setPageTitle', `(${count})`)
- else this.$store.dispatch('setPageTitle', '')
+ if (count > 0) {
+ this.$store.dispatch('setPageTitle', `(${count})`)
+ } else {
+ this.$store.dispatch('setPageTitle', '')
+ }
}
},
methods: {