From fcbe68141d7c9b05e453c31f1b98810be7b8b119 Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Tue, 26 Oct 2021 16:00:00 +0530 Subject: [PATCH] fix: Show twilio channel name based on medium (#3284) Co-authored-by: Pranav Raj S --- .../routes/dashboard/settings/inbox/Index.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Index.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Index.vue index b58515a35..87e274956 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Index.vue @@ -2,7 +2,7 @@
-
+

{{ $t('INBOX_MGMT.LIST.404') }} - Twilio SMS + {{ twilioChannelName(item) }} Whatsapp @@ -54,9 +54,7 @@ Telegram - - Line - + Line {{ globalConfig.apiChannelName || 'API' }} @@ -177,6 +175,11 @@ export default { }, }, methods: { + twilioChannelName(item) { + const { medium = '' } = item; + if (medium === 'whatsapp') return 'WhatsApp'; + return 'Twilio SMS'; + }, openSettings(inbox) { this.showSettings = true; this.selectedInbox = inbox;