aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorwakarimasen <wakarimasen@airmail.cc>2017-03-05 16:31:01 +0100
committerwakarimasen <wakarimasen@airmail.cc>2017-03-05 16:31:01 +0100
commit289326855caa5e763439f89f2829c430056e79c3 (patch)
tree6a538327177a109f292e1cf6ec281e97c12e2f96 /src/components/status/status.js
parent22e8258a56ab0828231bc0e510b52dd39eebb5c7 (diff)
Add focused prop to status
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js7
1 files changed, 2 insertions, 5 deletions
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: {