diff options
| author | hakui <hakui@airmail.cc> | 2017-02-18 17:38:56 -0600 |
|---|---|---|
| committer | hakui <hakui@airmail.cc> | 2017-02-18 17:38:56 -0600 |
| commit | af913463289d27155993e1621e47ee9a57681079 (patch) | |
| tree | 571e2a5edee415e846aae3a009cef4f97597e164 | |
| parent | 14237cff777acee47cf060aa81823b0dc25f3afa (diff) | |
changed to if-else to save on one line
| -rw-r--r-- | src/components/notifications/notifications.js | 4 |
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: { |
