Skip to content
Snippets Groups Projects
Commit af913463 authored by hakui's avatar hakui
Browse files

changed to if-else to save on one line

parent 14237cff
No related branches found
No related tags found
No related merge requests found
......@@ -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: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment