From 4a2f676f2e7fe40727b0aac573b8c0f9b88eb0fe Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 1 Apr 2019 07:26:13 -0700 Subject: Fix user card in notification --- src/components/notification/notification.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/components/notification/notification.js') 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 {} + }, } } -- cgit v1.2.3-70-g09d2 From 80277e5571bbe72d341dc17e7b418e6bdaa25029 Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 1 Apr 2019 07:27:12 -0700 Subject: Remove useless comma --- src/components/notification/notification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/notification/notification.js') diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index 1289616c..42a48f3f 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -40,7 +40,7 @@ const Notification = { return this.userInStore } return {} - }, + } } } -- cgit v1.2.3-70-g09d2