mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-09 12:48:05 +00:00
Hide subscriptions in store and account modal behind a feature flag
Subscriptions aren't ready yet. Add SUBSCRIPTIONS_ENABLED (currently false) in Cosmetics.ts to gate the Subscriptions store tab, the subscription panel on the account modal, and its cosmetics fetch. Flip the flag to true to re-enable.
This commit is contained in:
+9
-1
@@ -12,6 +12,7 @@ import {
|
||||
fetchCosmetics,
|
||||
purchaseCosmetic,
|
||||
resolveCosmetics,
|
||||
SUBSCRIPTIONS_ENABLED,
|
||||
} from "./Cosmetics";
|
||||
import { translateText } from "./Utils";
|
||||
|
||||
@@ -32,7 +33,14 @@ export class StoreModal extends BaseModal {
|
||||
return {
|
||||
tabs: [
|
||||
{ key: "packs", label: translateText("store.packs") },
|
||||
{ key: "subscriptions", label: translateText("store.subscriptions") },
|
||||
...(SUBSCRIPTIONS_ENABLED
|
||||
? [
|
||||
{
|
||||
key: "subscriptions",
|
||||
label: translateText("store.subscriptions"),
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{ key: "patterns", label: translateText("store.patterns") },
|
||||
{ key: "flags", label: translateText("store.flags") },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user