commit: f6d3a66a5b7bcbbecc72a66532866ee096c7752d
parent 6c4c8fe51f0e2c4ce55f5915a2bc5434aef5e5e7
Author: marcin mikołajczak <git@mkljczk.pl>
Date: Fri, 19 Jan 2024 19:01:11 +0100
shouldDisplayFavsAndRepeats
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/components/status/status.js b/src/components/status/status.js
@@ -374,6 +374,9 @@ const Status = {
hidePostStats () {
return this.mergedConfig.hidePostStats
},
+ shouldDisplayFavsAndRepeats () {
+ return !this.hidePostStats && this.isFocused && (this.combinedFavsAndRepeatsUsers.length > 0 || this.statusFromGlobalRepository.quotes_count)
+ },
muteBotStatuses () {
return this.mergedConfig.muteBotStatuses
},
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
@@ -478,7 +478,7 @@
<transition name="fade">
<div
- v-if="!hidePostStats && isFocused && combinedFavsAndRepeatsUsers.length > 0"
+ v-if="shouldDisplayFavsAndRepeats"
class="favs-repeated-users"
>
<div class="stats">