fix: Show twilio channel name based on medium (#3284)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<div class="column content-box">
|
<div class="column content-box">
|
||||||
<!-- List Canned Response -->
|
<!-- List Canned Response -->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-8 columns with-right-space ">
|
<div class="small-8 columns with-right-space">
|
||||||
<p v-if="!inboxesList.length" class="no-items-error-message">
|
<p v-if="!inboxesList.length" class="no-items-error-message">
|
||||||
{{ $t('INBOX_MGMT.LIST.404') }}
|
{{ $t('INBOX_MGMT.LIST.404') }}
|
||||||
<router-link
|
<router-link
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
Twitter
|
Twitter
|
||||||
</span>
|
</span>
|
||||||
<span v-if="item.channel_type === 'Channel::TwilioSms'">
|
<span v-if="item.channel_type === 'Channel::TwilioSms'">
|
||||||
Twilio SMS
|
{{ twilioChannelName(item) }}
|
||||||
</span>
|
</span>
|
||||||
<span v-if="item.channel_type === 'Channel::Whatsapp'">
|
<span v-if="item.channel_type === 'Channel::Whatsapp'">
|
||||||
Whatsapp
|
Whatsapp
|
||||||
@@ -54,9 +54,7 @@
|
|||||||
<span v-if="item.channel_type === 'Channel::Telegram'">
|
<span v-if="item.channel_type === 'Channel::Telegram'">
|
||||||
Telegram
|
Telegram
|
||||||
</span>
|
</span>
|
||||||
<span v-if="item.channel_type === 'Channel::Line'">
|
<span v-if="item.channel_type === 'Channel::Line'">Line</span>
|
||||||
Line
|
|
||||||
</span>
|
|
||||||
<span v-if="item.channel_type === 'Channel::Api'">
|
<span v-if="item.channel_type === 'Channel::Api'">
|
||||||
{{ globalConfig.apiChannelName || 'API' }}
|
{{ globalConfig.apiChannelName || 'API' }}
|
||||||
</span>
|
</span>
|
||||||
@@ -177,6 +175,11 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
twilioChannelName(item) {
|
||||||
|
const { medium = '' } = item;
|
||||||
|
if (medium === 'whatsapp') return 'WhatsApp';
|
||||||
|
return 'Twilio SMS';
|
||||||
|
},
|
||||||
openSettings(inbox) {
|
openSettings(inbox) {
|
||||||
this.showSettings = true;
|
this.showSettings = true;
|
||||||
this.selectedInbox = inbox;
|
this.selectedInbox = inbox;
|
||||||
|
|||||||
Reference in New Issue
Block a user