feat: hide reply count (#1439)

* feat: hide reply count

* fix(i18n): rearrange strings

* style: new line
This commit is contained in:
Evan Boehs 2023-01-26 07:41:43 -05:00 committed by GitHub
parent 75c4fa54d7
commit d26510a766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View file

@ -37,13 +37,13 @@ const reply = () => {
<div flex-1>
<StatusActionButton
:content="$t('action.reply')"
:text="status.repliesCount || ''"
:text="!getPreferences(userSettings, 'hideReplyCount') && status.repliesCount || ''"
color="text-blue" hover="text-blue" group-hover="bg-blue/10"
icon="i-ri:chat-1-line"
:command="command"
@click="reply"
>
<template v-if="status.repliesCount" #text>
<template v-if="status.repliesCount && !getPreferences(userSettings, 'hideReplyCount')" #text>
<CommonLocalizedNumber
keypath="action.reply_count"
:count="status.repliesCount"