fix hide(Post|User)Stats setting not working
This commit is contained in:
parent
1b2dafeef9
commit
7e44ebcc31
3 changed files with 8 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import EmojiPicker from 'src/components/emoji_picker/emoji_picker.vue'
|
|||
import Popover from 'src/components/popover/popover.vue'
|
||||
import StatusBookmarkFolderMenu from 'src/components/status_bookmark_folder_menu/status_bookmark_folder_menu.vue'
|
||||
|
||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js'
|
||||
|
||||
|
|
@ -96,6 +97,9 @@ export default {
|
|||
return !useInstanceCapabilitiesStore()
|
||||
.pleromaCustomEmojiReactionsAvailable
|
||||
},
|
||||
hidePostStats() {
|
||||
return useMergedConfigStore().mergedConfig.hidePostStats
|
||||
},
|
||||
buttonInnerClass() {
|
||||
return [
|
||||
this.button.name + '-button',
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
/>
|
||||
</component>
|
||||
<span
|
||||
v-if="button.counter?.(funcArg) > 0"
|
||||
v-if="!hidePostStats && button.counter?.(funcArg) > 0"
|
||||
class="action-counter"
|
||||
>
|
||||
{{ button.counter?.(funcArg) }}
|
||||
|
|
|
|||
|
|
@ -403,6 +403,9 @@ export default {
|
|||
allowNonSquareEmoji() {
|
||||
return this.mergedConfig.nonSquareEmoji
|
||||
},
|
||||
hideUserStats() {
|
||||
return this.mergedConfig.hideUserStats
|
||||
},
|
||||
...mapState(useMergedConfigStore, ['mergedConfig']),
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue