aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/status/status.js8
-rw-r--r--src/components/status/status.vue9
2 files changed, 15 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 22292ffa..9550c19f 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -4,6 +4,7 @@ import RetweetButton from '../retweet_button/retweet_button.vue'
import DeleteButton from '../delete_button/delete_button.vue'
import PostStatusForm from '../post_status_form/post_status_form.vue'
import UserCardContent from '../user_card_content/user_card_content.vue'
+import { toInteger } from 'lodash'
const Status = {
props: [
@@ -30,7 +31,12 @@ const Status = {
loggedIn () {
return !!this.$store.state.users.currentUser
},
- muted () { return !this.unmuted && this.status.user.muted }
+ 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: {
Attachment,
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 585bf621..6476e1e5 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -1,5 +1,5 @@
<template>
- <div class="status-el base00-background" v-if="!status.deleted" v-bind:class="{ 'expanded-status': !expandable }">
+ <div class="status-el base00-background" v-if="!status.deleted" v-bind:class="[{ 'expanded-status': !expandable }, { 'base01-background': focused }]">
<template v-if="muted">
<div class="media status container muted">
<small><router-link :to="{ name: 'user-profile', params: { id: status.user.id } }">{{status.user.screen_name}}</router-link></small>
@@ -34,6 +34,13 @@
{{status.in_reply_to_screen_name}}
</router-link>
</small>
+ <template v-if="isReply">
+ <small>
+ <router-link :to="{ name: 'conversation', params: { id: status.in_reply_to_status_id } }">
+ <i class="icon-reply"></i>
+ </router-link>
+ </small>
+ </template>
-
<small>
<router-link :to="{ name: 'conversation', params: { id: status.id } }">