diff options
| author | jared <jaredrmain@gmail.com> | 2019-04-02 10:53:33 -0400 |
|---|---|---|
| committer | jared <jaredrmain@gmail.com> | 2019-04-02 10:53:33 -0400 |
| commit | 79efe0646cb6fc88952e33e13a8ce61205d3aad6 (patch) | |
| tree | 1eeae048c814b7a8da6780776d7a9ce2dcdf09d5 /src/components/notification/notification.js | |
| parent | 2ee8d213669c101baad726ece5dc37b5eea7da94 (diff) | |
merge develop
Diffstat (limited to 'src/components/notification/notification.js')
| -rw-r--r-- | src/components/notification/notification.js | 9 |
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 {} } } } |
