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/status/status.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/components/status/status.js') diff --git a/src/components/status/status.js b/src/components/status/status.js index 9550c19f..f1682e68 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -9,7 +9,8 @@ import { toInteger } from 'lodash' const Status = { props: [ 'statusoid', - 'expandable' + 'expandable', + 'focused' ], data: () => ({ replying: false, @@ -32,10 +33,6 @@ const Status = { return !!this.$store.state.users.currentUser }, muted () { return !this.unmuted && this.status.user.muted }, - focused () { - const id = toInteger(this.$route.params.id) - return (this.statusoid.id == id) - }, isReply () { return !!this.statusoid.in_reply_to_status_id } }, components: { -- cgit v1.2.3-70-g09d2