Skip to content

Commit

Permalink
fix: UserCard "hidden subscription status" message (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
seabeya authored Aug 21, 2023
1 parent 30ca39e commit e817dc1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-nightly.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Added an option to select alternating background color for chat messages
- Fixed an issue with tab auto-completion on Kick
- Fixed emote tile width in emote menu
- Fixed "hidden subscription status" message in the User Card

### 3.0.15.1000

Expand Down
1 change: 1 addition & 0 deletions locale/en_US.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ user_card:
subscription_tier: Tier {tier}
subscription_length: Subscribed for {length} months
previously_subscription_length: Previously subscribed for {length} months
hidden_subscription_status: Status hidden
native: Open Native User Card
no_messages: "{user} has not chatted here"
no_timeouts: "{user} hasn't been timed out before"
Expand Down
12 changes: 8 additions & 4 deletions src/app/chat/UserCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@
<p v-if="data.targetUser.relationship.subscription.isSubscribed">
<StarIcon />
{{
`${t("user_card.subscription_tier", {
tier: data.targetUser.relationship.subscription.tier[0],
})} -
${t("user_card.subscription_length", { length: data.targetUser.relationship.subscription.months })}`
data.targetUser.relationship.subscription.months
? `${t("user_card.subscription_tier", {
tier: data.targetUser.relationship.subscription.tier[0],
})} -
${t("user_card.subscription_length", {
length: data.targetUser.relationship.subscription.months,
})}`
: `${t("user_card.hidden_subscription_status")}`
}}
</p>

Expand Down

0 comments on commit e817dc1

Please sign in to comment.