From 73ad27e94c647cc80e27ca89daed3820bf527a42 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Wed, 26 Nov 2025 21:01:31 +0530 Subject: [PATCH] fix: Show WhatsApp templates only for inboxes with templates (#12965) Fixed the logic to show WhatsApp templates option only for inboxes that have templates available. --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index 80551eaf8..c74dcecea 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -174,7 +174,12 @@ export default { return false; }, showWhatsappTemplates() { - return this.isAWhatsAppCloudChannel && !this.isPrivate; + // We support WhatsApp templates for API channels if someone updates templates manually via API + // That's why we don't explicitly check for WhatsApp channel type here + const templates = this.$store.getters['inboxes/getWhatsAppTemplates']( + this.inboxId + ); + return !!(templates && templates.length) && !this.isPrivate; }, showContentTemplates() { return this.isATwilioWhatsAppChannel && !this.isPrivate;