forked from AkkomaGang/akkoma-fe
changed to if-else to save on one line
This commit is contained in:
parent
14237cff77
commit
af91346328
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ const Notifications = {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
unseenCount (count) {
|
unseenCount (count) {
|
||||||
this.$store.dispatch('setPageTitle', `(${count})`)
|
if (count>0) this.$store.dispatch('setPageTitle', `(${count})`)
|
||||||
if (count==0) this.$store.dispatch('setPageTitle', '')
|
else this.$store.dispatch('setPageTitle', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue