aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry <spam@hjkos.com>2018-12-04 19:13:53 +0000
committerHenry <spam@hjkos.com>2018-12-04 19:13:53 +0000
commit341e7da1d8c9fa024d6bb3a214190f6b9a569973 (patch)
tree3eb920501ab6d823ded867835ef60544bf162d8d /src
parentf146562d70f0c25c0c6abcbde9805629fc792822 (diff)
parent57366ff0cc2b1af7d168778a5e0792ebcf11c235 (diff)
Merge branch 'dev_vald_fe/post_delete' into 'develop'
used the deleted data param as condition in status template Closes #81 See merge request pleroma/pleroma-fe!398
Diffstat (limited to 'src')
-rw-r--r--src/components/status/status.js3
-rw-r--r--src/components/status/status.vue2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 10716583..ad6f4184 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -53,6 +53,9 @@ const Status = {
const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user
return highlightClass(user)
},
+ deleted () {
+ return this.statusoid.deleted
+ },
repeaterStyle () {
const user = this.statusoid.user
const highlight = this.$store.state.config.highlight
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 9f65f281..984884ff 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -1,5 +1,5 @@
<template>
- <div class="status-el" v-if="!hideReply" :class="[{ 'status-el_focused': isFocused }, { 'status-conversation': inlineExpanded }]">
+ <div class="status-el" v-if="!hideReply && !deleted" :class="[{ 'status-el_focused': isFocused }, { 'status-conversation': inlineExpanded }]">
<template v-if="muted && !noReplyLinks">
<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>