From 289326855caa5e763439f89f2829c430056e79c3 Mon Sep 17 00:00:00 2001 From: wakarimasen Date: Sun, 5 Mar 2017 16:31:01 +0100 Subject: Add focused prop to status --- src/components/conversation/conversation.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/conversation/conversation.js') diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index ecc76e71..524737fd 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -47,6 +47,9 @@ const conversation = { .then((status) => this.$store.dispatch('addNewStatuses', { statuses: [status] })) .then(() => this.fetchConversation()) } + }, + focused: function(id) { + return (id == this.statusoid.id) } } } -- cgit v1.2.3-70-g09d2 From 51160f0fdb068f0c9a1133fe66286467b1f4fd78 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 5 Mar 2017 20:36:22 +0100 Subject: Style fixes. --- src/components/conversation/conversation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/conversation/conversation.js') diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 524737fd..a598b521 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -48,8 +48,8 @@ const conversation = { .then(() => this.fetchConversation()) } }, - focused: function(id) { - return (id == this.statusoid.id) + focused: function (id) { + return (id === this.statusoid.id) } } } -- cgit v1.2.3-70-g09d2