From c0f1e9237f5d1d2775874641c5d244c8dbb127d0 Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Tue, 5 May 2026 18:01:33 +0700 Subject: [PATCH] feat(voice): hide WhatsApp Calling settings tab when channel_voice flag is off Matches the existing voice-configuration tab gating so admins on accounts without the premium channel_voice entitlement don't see the WhatsApp Calling configuration tab. --- .../routes/dashboard/settings/inbox/Settings.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue index ae74aef26..62cd2b7bc 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Settings.vue @@ -251,7 +251,14 @@ export default { ]; } - if (this.isAWhatsAppCloudChannel && this.isEmbeddedSignupWhatsApp) { + if ( + this.isAWhatsAppCloudChannel && + this.isEmbeddedSignupWhatsApp && + this.isFeatureEnabledonAccount( + this.accountId, + FEATURE_FLAGS.CHANNEL_VOICE + ) + ) { visibleToAllChannelTabs = [ ...visibleToAllChannelTabs, {