diff options
| author | shpuld <shp@cock.li> | 2019-04-01 22:42:06 +0300 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-04-01 22:42:06 +0300 |
| commit | 46de457f50416d0c8f37a833356b0b7ea643a53f (patch) | |
| tree | 2af3e96da21aee1e06f0eb6beff82c24770b7296 /src/components/notification/notification.js | |
| parent | 2879495b8ab16a07d337965871e951f660fc1815 (diff) | |
| parent | df366a586d6549b41d5537c57eb51c5f0f54a641 (diff) | |
Merge branch 'develop' into feature/mobile-improvements-3
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 {} } } } |
