aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-06-19 16:17:50 +0300
committerHenry Jameson <me@hjkos.com>2018-07-06 20:12:09 +0300
commit8ccebbe1564fe76b376eee83ad985b934edcbfa9 (patch)
tree0d058c52b460d4647ddfae046695a2470f4e2be7 /src/components/status/status.js
parentfa8c221f3a6f9b1421e29aa014304576810a08e6 (diff)
both bugs fixed. it's reactive and no more conflicting cards
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index fcdc6f61..2b5bcb55 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -38,19 +38,23 @@ const Status = {
},
repeaterClass () {
const user = this.statusoid.user
- return highlightClass(user, this.$store)
+ return highlightClass(user)
},
userClass () {
const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user
- return highlightClass(user, this.$store)
+ return highlightClass(user)
},
repeaterStyle () {
const user = this.statusoid.user
- return highlightStyle(user, this.$store)
+ const highlight = this.$store.state.config.highlight
+ const color = highlight[user.screen_name]
+ return highlightStyle(color)
},
userStyle () {
const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user
- return highlightStyle(user, this.$store)
+ const highlight = this.$store.state.config.highlight
+ const color = highlight[user.screen_name]
+ return highlightStyle(color)
},
hideAttachments () {
return (this.$store.state.config.hideAttachments && !this.inConversation) ||