Chore: Add docs for Twilio Whatsapp/SMS channel (#804)

This commit is contained in:
Pranav Raj S
2020-05-02 16:25:57 +05:30
committed by GitHub
parent 7e62000e1b
commit 8655466fa5
12 changed files with 96 additions and 10 deletions

View File

@@ -13,6 +13,14 @@
>
</woot-code>
</div>
<div class="medium-6 small-offset-3">
<woot-code
v-if="isATwilioInbox"
lang="html"
:script="twilioCallbackURL"
>
</woot-code>
</div>
<router-link
class="button success nice"
:to="{
@@ -42,7 +50,16 @@ export default {
this.$route.params.inbox_id
);
},
isATwilioInbox() {
return this.currentInbox.channel_type === 'Channel::TwilioSms';
},
message() {
if (this.isATwilioInbox) {
return `${this.$t('INBOX_MGMT.FINISH.MESSAGE')}. ${this.$t(
'INBOX_MGMT.ADD.TWILIO.API_CALLBACK.SUBTITLE'
)}`;
}
if (!this.currentInbox.website_token) {
return this.$t('INBOX_MGMT.FINISH.MESSAGE');
}

View File

@@ -100,7 +100,6 @@
</label>
</div>
</div>
<div>
<label>
{{ $t('INBOX_MGMT.SETTINGS_POPUP.AUTO_ASSIGNMENT') }}
@@ -155,6 +154,19 @@
</woot-submit-button>
</settings-section>
</div>
<div
v-if="inbox.channel_type === 'Channel::TwilioSms'"
class="settings--content"
>
<settings-section
:title="$t('INBOX_MGMT.ADD.TWILIO.API_CALLBACK.TITLE')"
:sub-title="$t('INBOX_MGMT.ADD.TWILIO.API_CALLBACK.SUBTITLE')"
>
<woot-code :script="twilioCallbackURL" lang="html"></woot-code>
</settings-section>
</div>
<div
v-if="inbox.channel_type === 'Channel::FacebookPage'"
class="settings--content"