logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: f734a721165537b587495498c3e7c3d80eb179e7
parent: e86f6edb7ce517bb7bd0f166ee6c6290bc304325
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date:   Mon, 15 Jul 2019 21:47:45 +0000

Merge branch 'fix/respect-hide-post-stats' into 'develop'

Hide favs/rts properly when hide post stats is enabled

See merge request pleroma/pleroma-fe!877

Diffstat:

Msrc/components/status/status.js5+++++
Msrc/components/status/status.vue2+-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/components/status/status.js b/src/components/status/status.js @@ -280,6 +280,11 @@ const Status = { }, tags () { return this.status.tags.filter(tagObj => tagObj.hasOwnProperty('name')).map(tagObj => tagObj.name).join(' ') + }, + hidePostStats () { + return typeof this.$store.state.config.hidePostStats === 'undefined' + ? this.$store.state.instance.hidePostStats + : this.$store.state.config.hidePostStats } }, components: { diff --git a/src/components/status/status.vue b/src/components/status/status.vue @@ -344,7 +344,7 @@ <transition name="fade"> <div - v-if="isFocused && combinedFavsAndRepeatsUsers.length > 0" + v-if="!hidePostStats && isFocused && combinedFavsAndRepeatsUsers.length > 0" class="favs-repeated-users" > <div class="stats">