both bugs fixed. it's reactive and no more conflicting cards

This commit is contained in:
Henry Jameson 2018-06-19 16:17:50 +03:00
parent fa8c221f3a
commit 8ccebbe156
7 changed files with 41 additions and 44 deletions

View file

@ -22,11 +22,14 @@ const Notification = {
},
computed: {
userClass () {
return highlightClass(this.notification.action.user, this.$store)
return highlightClass(this.notification.action.user)
},
userStyle () {
return highlightStyle(this.notification.action.user, this.$store)
},
const highlight = this.$store.state.config.highlight
const user = this.notification.action.user
const color = highlight[user.screen_name]
return highlightStyle(color)
}
}
}