feat(billing): gate currency switch UI behind billing_currency_switch flag

This commit is contained in:
Tanmay Deep Sharma
2026-06-15 14:42:47 +05:30
parent 552d598060
commit 4e90084d9e
@@ -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(() =>