update step four content in case of embedded signup

This commit is contained in:
Tanmay Deep Sharma
2025-06-09 02:35:13 +05:30
parent 149085e3d8
commit 34852fccc1
3 changed files with 11 additions and 4 deletions
@@ -269,6 +269,7 @@
"API_CALLBACK": {
"TITLE": "Callback URL",
"SUBTITLE": "You have to configure the webhook URL and the verification token in the Facebook Developer portal with the values shown below.",
"SUBTITLE_EMBEDDED": "We have configured the webhook URL and the verification token in the Facebook Developer portal with the values shown below.",
"WEBHOOK_URL": "Webhook URL",
"WEBHOOK_VERIFICATION_TOKEN": "Webhook Verification Token"
},
@@ -67,9 +67,14 @@ export default {
}
if (this.isWhatsAppCloudInbox) {
return `${this.$t('INBOX_MGMT.FINISH.MESSAGE')}. ${this.$t(
'INBOX_MGMT.ADD.WHATSAPP.API_CALLBACK.SUBTITLE'
)}`;
const isEmbeddedSignup =
this.currentInbox.provider_config?.source === 'embedded_signup';
const subtitleKey = isEmbeddedSignup
? 'INBOX_MGMT.ADD.WHATSAPP.API_CALLBACK.SUBTITLE_EMBEDDED'
: 'INBOX_MGMT.ADD.WHATSAPP.API_CALLBACK.SUBTITLE';
return `${this.$t('INBOX_MGMT.FINISH.MESSAGE')}. ${this.$t(subtitleKey)}`;
}
if (this.isAEmailInbox && !this.currentInbox.provider) {