chore: Twilio to individual(SMS/Whatsapp) channels (#2566)

This commit is contained in:
Siddharth Ramesh 2021-07-12 22:33:39 +05:30 committed by GitHub
parent ba547b3f60
commit fc4ef1595b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 138 additions and 96 deletions

View file

@ -37,8 +37,12 @@
src="~dashboard/assets/images/channels/website.png"
/>
<img
v-if="channel.key === 'twilio'"
src="~dashboard/assets/images/channels/twilio.png"
v-if="channel.key === 'sms'"
src="~dashboard/assets/images/channels/sms.png"
/>
<img
v-if="channel.key === 'whatsapp'"
src="~dashboard/assets/images/channels/whatsapp.png"
/>
<h3 class="channel__title">
{{ channel.name }}
@ -72,7 +76,7 @@ export default {
if (key === 'email') {
return this.enabledFeatures.channel_email;
}
return ['website', 'twilio', 'api'].includes(key);
return ['website', 'twilio', 'api', 'whatsapp', 'sms'].includes(key);
},
},
methods: {