From 966dcf47a53b0a523006ba26d4b6b65c7f51f6bf Mon Sep 17 00:00:00 2001
From: Ryan <7389646+ryanbarlow97@users.noreply.github.com>
Date: Mon, 29 Jun 2026 02:41:32 +0100
Subject: [PATCH] removes the "subscribe" and "purchase" text (#4436)
## Description:
removes the "subscribe" and "purchase" text:
this is what it looks like if you're subbed to something now:
## Please complete the following:
- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
## Please put your Discord username so you can be contacted if a bug or
regression is found:
w.o.n
---
resources/lang/en.json | 4 +---
src/client/components/CosmeticButton.ts | 14 ++++++--------
src/client/components/CosmeticContainer.ts | 5 ++---
src/client/components/PurchaseButton.ts | 16 +++++++---------
4 files changed, 16 insertions(+), 23 deletions(-)
diff --git a/resources/lang/en.json b/resources/lang/en.json
index 5633e3cd4..49bf7e135 100644
--- a/resources/lang/en.json
+++ b/resources/lang/en.json
@@ -1253,7 +1253,6 @@
"confirm_downgrade": "Downgrade to {tier}? You'll get account credit for the unused portion of your current plan.",
"confirm_upgrade": "Upgrade to {tier}? You'll be charged the prorated difference now.",
"currency_pack_purchase_success": "Currency pack purchase successful!",
- "current_plan": "Current Plan",
"flags": "Flags",
"login_required": "You must be logged in to purchase with currency.",
"no_flags": "No flags available. Check back later for new items.",
@@ -1266,7 +1265,7 @@
"price_per_month": "/mo",
"purchase_failed": "Purchase failed. Please try again.",
"purchase_success": "Purchase succeeded: {name}",
- "subscribe_button": "Subscribe",
+ "subscribed": "Subscribed",
"subscription_purchase_success": "Subscription activated!",
"subscriptions": "Subscriptions",
"switch_button": "Switch",
@@ -1288,7 +1287,6 @@
"pattern": {
"default": "Default"
},
- "purchase": "Purchase",
"search": "Search...",
"select_skin": "Select Skin",
"selected": "selected",
diff --git a/src/client/components/CosmeticButton.ts b/src/client/components/CosmeticButton.ts
index 2a705a995..871ad74db 100644
--- a/src/client/components/CosmeticButton.ts
+++ b/src/client/components/CosmeticButton.ts
@@ -19,7 +19,6 @@ import "./CosmeticContainer";
import "./CosmeticInfo";
import { renderPatternPreview } from "./PatternPreview";
import "./PlutoniumIcon";
-import { DEFAULT_DOLLAR_LABEL_KEY } from "./PurchaseButton";
@customElement("cosmetic-button")
export class CosmeticButton extends LitElement {
@@ -265,12 +264,11 @@ export class CosmeticButton extends LitElement {
const isSkin = type === "skin";
const isOwnedSubscription =
type === "subscription" && active.relationship === "owned";
+ // Switching tiers shows "Switch"; a first-time subscribe shows price only.
const dollarLabelKey =
- type === "subscription"
- ? this.userHasSubscription
- ? "store.switch_button"
- : "store.subscribe_button"
- : DEFAULT_DOLLAR_LABEL_KEY;
+ type === "subscription" && this.userHasSubscription
+ ? "store.switch_button"
+ : "";
const priceSuffix =
type === "subscription" ? translateText("store.price_per_month") : "";
const sizeClass = type === "flag" ? "gap-1 p-1.5 w-36" : "gap-2 p-3 w-48";
@@ -329,9 +327,9 @@ export class CosmeticButton extends LitElement {
${this.renderColorSwatches()}
${isOwnedSubscription
? html`