From 4e90084d9e2763af936a4226628fa97910b3f065 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Mon, 15 Jun 2026 14:42:47 +0530 Subject: [PATCH] feat(billing): gate currency switch UI behind billing_currency_switch flag --- .../routes/dashboard/settings/billing/Index.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/billing/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/billing/Index.vue index c5b39c396..d4480bbaf 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/billing/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/billing/Index.vue @@ -27,7 +27,8 @@ import ButtonV4 from 'next/button/Button.vue'; const router = useRouter(); const { t } = useI18n(); -const { currentAccount, isOnChatwootCloud } = useAccount(); +const { currentAccount, isOnChatwootCloud, isCloudFeatureEnabled } = + useAccount(); const { captainEnabled, captainLimits, @@ -137,9 +138,9 @@ const handleBillingPageLogic = async () => { const isSwitchingCurrency = computed(() => uiFlags.value.isSwitchingCurrency); -// Currency switching is rolled out to Brazil (pt_BR) accounts only for now. -const showCurrencyToggle = computed( - () => currentAccount.value?.locale === 'pt_BR' +// Currency switching is rolled out per-account via the billing_currency_switch feature flag. +const showCurrencyToggle = computed(() => + isCloudFeatureEnabled('billing_currency_switch') ); const currentBillingCurrency = computed(() =>