chore: Display API key in the configuration for WhatsApp Channel (#4944)

This commit is contained in:
Pranav Raj S
2022-06-29 11:52:55 +05:30
committed by GitHub
parent df1bf112ea
commit 3f6862e04d
5 changed files with 20 additions and 4 deletions

View File

@@ -413,7 +413,8 @@ export default {
this.isATwilioChannel ||
this.isALineChannel ||
this.isAPIInbox ||
this.isAnEmailChannel
this.isAnEmailChannel ||
this.isAWhatsappChannel
) {
return [
...visibleToAllChannelTabs,

View File

@@ -68,6 +68,16 @@
<imap-settings :inbox="inbox" />
<smtp-settings v-if="inbox.imap_enabled" :inbox="inbox" />
</div>
<div v-else-if="isAWhatsappChannel && !isATwilioChannel">
<div v-if="inbox.provider_config" class="settings--content">
<settings-section
:title="$t('INBOX_MGMT.SETTINGS_POPUP.WHATSAPP_SECTION_TITLE')"
:sub-title="$t('INBOX_MGMT.SETTINGS_POPUP.WHATSAPP_SECTION_SUBHEADER')"
>
<woot-code :script="inbox.provider_config.api_key" />
</settings-section>
</div>
</div>
</template>
<script>