diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-07-15 21:47:45 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-07-15 21:47:45 +0000 |
| commit | f734a721165537b587495498c3e7c3d80eb179e7 (patch) | |
| tree | 0b65a4a51b5ca2a5267b40d61e10f235762c7507 | |
| parent | e86f6edb7ce517bb7bd0f166ee6c6290bc304325 (diff) | |
| parent | 59ade4084e2d3c7d018fec57972742a628749032 (diff) | |
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
| -rw-r--r-- | src/components/status/status.js | 5 | ||||
| -rw-r--r-- | src/components/status/status.vue | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 7911d40d..3ab96997 100644 --- 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 index 30969256..b825d17d 100644 --- 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"> |
