aboutsummaryrefslogtreecommitdiff
path: root/src/components/notifications/notifications.js
diff options
context:
space:
mode:
authorhakui <hakui@airmail.cc>2017-02-18 17:38:56 -0600
committerhakui <hakui@airmail.cc>2017-02-18 17:38:56 -0600
commitaf913463289d27155993e1621e47ee9a57681079 (patch)
tree571e2a5edee415e846aae3a009cef4f97597e164 /src/components/notifications/notifications.js
parent14237cff777acee47cf060aa81823b0dc25f3afa (diff)
changed to if-else to save on one line
Diffstat (limited to 'src/components/notifications/notifications.js')
-rw-r--r--src/components/notifications/notifications.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js
index 3f9fe3b4..e872a2e5 100644
--- a/src/components/notifications/notifications.js
+++ b/src/components/notifications/notifications.js
@@ -25,8 +25,8 @@ const Notifications = {
},
watch: {
unseenCount (count) {
- this.$store.dispatch('setPageTitle', `(${count})`)
- if (count==0) this.$store.dispatch('setPageTitle', '')
+ if (count>0) this.$store.dispatch('setPageTitle', `(${count})`)
+ else this.$store.dispatch('setPageTitle', '')
}
},
methods: {