shouldDisplayFavsAndRepeats

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-01-19 19:01:11 +01:00
parent 6c4c8fe51f
commit f6d3a66a5b
2 changed files with 4 additions and 1 deletions

View File

@ -374,6 +374,9 @@ const Status = {
hidePostStats () { hidePostStats () {
return this.mergedConfig.hidePostStats return this.mergedConfig.hidePostStats
}, },
shouldDisplayFavsAndRepeats () {
return !this.hidePostStats && this.isFocused && (this.combinedFavsAndRepeatsUsers.length > 0 || this.statusFromGlobalRepository.quotes_count)
},
muteBotStatuses () { muteBotStatuses () {
return this.mergedConfig.muteBotStatuses return this.mergedConfig.muteBotStatuses
}, },

View File

@ -478,7 +478,7 @@
<transition name="fade"> <transition name="fade">
<div <div
v-if="!hidePostStats && isFocused && combinedFavsAndRepeatsUsers.length > 0" v-if="shouldDisplayFavsAndRepeats"
class="favs-repeated-users" class="favs-repeated-users"
> >
<div class="stats"> <div class="stats">