aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-04-01 15:38:14 +0000
committerShpuld Shpludson <shp@cock.li>2019-04-01 15:38:14 +0000
commit6c24ae9b0be25becc453cd62ba78b955c5fb6c70 (patch)
tree1eeebe0380b1a4526c1ccd2e67f4adc3ba6932bd /src/components/notification/notification.js
parent0117f6af9f8ae600e613402590de4c9364806967 (diff)
parent80277e5571bbe72d341dc17e7b418e6bdaa25029 (diff)
Merge branch 'fix/user-card-buttons' into 'develop'
#467 Fix/Muted and Blocked not "pressed" on User Card Closes #467 See merge request pleroma/pleroma-fe!720
Diffstat (limited to 'src/components/notification/notification.js')
-rw-r--r--src/components/notification/notification.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js
index fe5b7018..42a48f3f 100644
--- a/src/components/notification/notification.js
+++ b/src/components/notification/notification.js
@@ -31,6 +31,15 @@ const Notification = {
const highlight = this.$store.state.config.highlight
const user = this.notification.action.user
return highlightStyle(highlight[user.screen_name])
+ },
+ userInStore () {
+ return this.$store.getters.findUser(this.notification.action.user.id)
+ },
+ user () {
+ if (this.userInStore) {
+ return this.userInStore
+ }
+ return {}
}
}
}