Hide favs/rts properly when hide post stats is enabled
This commit is contained in:
parent
6b4fe1c2d9
commit
59ade4084e
|
@ -280,6 +280,11 @@ const Status = {
|
||||||
},
|
},
|
||||||
tags () {
|
tags () {
|
||||||
return this.status.tags.filter(tagObj => tagObj.hasOwnProperty('name')).map(tagObj => tagObj.name).join(' ')
|
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: {
|
components: {
|
||||||
|
|
|
@ -344,7 +344,7 @@
|
||||||
|
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<div
|
<div
|
||||||
v-if="isFocused && combinedFavsAndRepeatsUsers.length > 0"
|
v-if="!hidePostStats && isFocused && combinedFavsAndRepeatsUsers.length > 0"
|
||||||
class="favs-repeated-users"
|
class="favs-repeated-users"
|
||||||
>
|
>
|
||||||
<div class="stats">
|
<div class="stats">
|
||||||
|
|
Loading…
Reference in New Issue