diff options
| author | Henry Jameson <me@hjkos.com> | 2018-06-19 16:17:50 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-07-06 20:12:09 +0300 |
| commit | 8ccebbe1564fe76b376eee83ad985b934edcbfa9 (patch) | |
| tree | 0d058c52b460d4647ddfae046695a2470f4e2be7 /src/components/notification | |
| parent | fa8c221f3a6f9b1421e29aa014304576810a08e6 (diff) | |
both bugs fixed. it's reactive and no more conflicting cards
Diffstat (limited to 'src/components/notification')
| -rw-r--r-- | src/components/notification/notification.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index d2dd91de..33482891 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -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) + } } } |
