diff options
| author | jasper <jasper92341@hotmail.com> | 2019-04-01 07:26:13 -0700 |
|---|---|---|
| committer | jasper <jasper92341@hotmail.com> | 2019-04-01 07:26:13 -0700 |
| commit | 4a2f676f2e7fe40727b0aac573b8c0f9b88eb0fe (patch) | |
| tree | d745b826cd1af24b2eb8a493a076dd21574c8acf /src/components/notification/notification.js | |
| parent | 0117f6af9f8ae600e613402590de4c9364806967 (diff) | |
Fix user card in notification
Diffstat (limited to 'src/components/notification/notification.js')
| -rw-r--r-- | src/components/notification/notification.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index fe5b7018..1289616c 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -31,7 +31,16 @@ 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 {} + }, } } |
