diff options
| author | shpuld <shp@cock.li> | 2019-07-09 16:50:23 +0300 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-07-09 16:50:23 +0300 |
| commit | 59ade4084e2d3c7d018fec57972742a628749032 (patch) | |
| tree | 14ddedd3b0056ce94750792ae6fa1fac9be00234 /src | |
| parent | 6b4fe1c2d9143578ccc8a6ae5774006b34002ba2 (diff) | |
Hide favs/rts properly when hide post stats is enabled
Diffstat (limited to 'src')
| -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 4b3499cd..da0b9edc 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"> |
