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
This commit is contained in:
Henry 2018-12-04 19:13:53 +00:00
commit 341e7da1d8
2 changed files with 4 additions and 1 deletions

View file

@ -53,6 +53,9 @@ const Status = {
const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user
return highlightClass(user) return highlightClass(user)
}, },
deleted () {
return this.statusoid.deleted
},
repeaterStyle () { repeaterStyle () {
const user = this.statusoid.user const user = this.statusoid.user
const highlight = this.$store.state.config.highlight const highlight = this.$store.state.config.highlight

View file

@ -1,5 +1,5 @@
<template> <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"> <template v-if="muted && !noReplyLinks">
<div class="media status container 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> <small><router-link :to="{ name: 'user-profile', params: { id: status.user.id } }">{{status.user.screen_name}}</router-link></small>