changed to if-else to save on one line

This commit is contained in:
hakui 2017-02-18 17:38:56 -06:00
parent 14237cff77
commit af91346328

View file

@ -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: {