aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-08-12 16:14:35 +0000
committerlambda <pleromagit@rogerbraun.net>2018-08-12 16:14:35 +0000
commit25be51e2c1d9ca7ab112682c59ffadd6d1b63276 (patch)
treeb04030b899850b503097c2df1e7fde2a13043a7f /src/components/notification/notification.js
parentdb6ff4824afa7adca1f3b633278e9ed033d8671d (diff)
parent27adde9887d7205703ed461560f3272f6709b83b (diff)
Merge branch 'feature/accountHighlight' into 'develop'
Account highlight See merge request pleroma/pleroma-fe!285
Diffstat (limited to 'src/components/notification/notification.js')
-rw-r--r--src/components/notification/notification.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index 3a274374..c786f2cc 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -1,6 +1,7 @@
import Status from '../status/status.vue'
import StillImage from '../still-image/still-image.vue'
import UserCardContent from '../user_card_content/user_card_content.vue'
+import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js'
const Notification = {
data () {
@@ -18,6 +19,16 @@ const Notification = {
toggleUserExpanded () {
this.userExpanded = !this.userExpanded
}
+ },
+ computed: {
+ userClass () {
+ return highlightClass(this.notification.action.user)
+ },
+ userStyle () {
+ const highlight = this.$store.state.config.highlight
+ const user = this.notification.action.user
+ return highlightStyle(highlight[user.screen_name])
+ }
}
}