chore: Disable API channel reply editor outside 24h window (#13664)
This commit is contained in:
@@ -380,7 +380,11 @@ export default {
|
|||||||
@click="$emit('selectContentTemplate')"
|
@click="$emit('selectContentTemplate')"
|
||||||
/>
|
/>
|
||||||
<VideoCallButton
|
<VideoCallButton
|
||||||
v-if="(isAWebWidgetInbox || isAPIInbox) && !isOnPrivateNote"
|
v-if="
|
||||||
|
(isAWebWidgetInbox || isAPIInbox) &&
|
||||||
|
!isOnPrivateNote &&
|
||||||
|
!isEditorDisabled
|
||||||
|
"
|
||||||
:conversation-id="conversationId"
|
:conversation-id="conversationId"
|
||||||
/>
|
/>
|
||||||
<transition name="modal-fade">
|
<transition name="modal-fade">
|
||||||
|
|||||||
@@ -200,9 +200,13 @@ export default {
|
|||||||
},
|
},
|
||||||
messagePlaceHolder() {
|
messagePlaceHolder() {
|
||||||
if (this.isEditorDisabled) {
|
if (this.isEditorDisabled) {
|
||||||
return this.isAWhatsAppChannel
|
if (this.isAWhatsAppChannel) {
|
||||||
? this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED_WHATSAPP')
|
return this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED_WHATSAPP');
|
||||||
: this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED');
|
}
|
||||||
|
if (this.isAPIInbox) {
|
||||||
|
return this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED_API');
|
||||||
|
}
|
||||||
|
return this.$t('CONVERSATION.FOOTER.MESSAGING_RESTRICTED');
|
||||||
}
|
}
|
||||||
return this.isPrivate
|
return this.isPrivate
|
||||||
? this.$t('CONVERSATION.FOOTER.PRIVATE_MSG_INPUT')
|
? this.$t('CONVERSATION.FOOTER.PRIVATE_MSG_INPUT')
|
||||||
@@ -427,7 +431,7 @@ export default {
|
|||||||
},
|
},
|
||||||
isEditorDisabled() {
|
isEditorDisabled() {
|
||||||
return (
|
return (
|
||||||
this.isAWhatsAppChannel &&
|
(this.isAWhatsAppChannel || this.isAPIInbox) &&
|
||||||
!this.isOnPrivateNote &&
|
!this.isOnPrivateNote &&
|
||||||
!this.currentChat.can_reply
|
!this.currentChat.can_reply
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -192,6 +192,7 @@
|
|||||||
"PRIVATE_MSG_INPUT": "Shift + enter for new line. This will be visible only to Agents",
|
"PRIVATE_MSG_INPUT": "Shift + enter for new line. This will be visible only to Agents",
|
||||||
"MESSAGING_RESTRICTED": "You cannot reply to this conversation",
|
"MESSAGING_RESTRICTED": "You cannot reply to this conversation",
|
||||||
"MESSAGING_RESTRICTED_WHATSAPP": "You can only reply using a template message due to 24-hour message window restriction",
|
"MESSAGING_RESTRICTED_WHATSAPP": "You can only reply using a template message due to 24-hour message window restriction",
|
||||||
|
"MESSAGING_RESTRICTED_API": "You can only reply using a template message due to message window restriction",
|
||||||
"MESSAGE_SIGNATURE_NOT_CONFIGURED": "Message signature is not configured, please configure it in profile settings.",
|
"MESSAGE_SIGNATURE_NOT_CONFIGURED": "Message signature is not configured, please configure it in profile settings.",
|
||||||
"COPILOT_MSG_INPUT": "Give copilot additional prompts, or ask anything else... Press enter to send follow-up",
|
"COPILOT_MSG_INPUT": "Give copilot additional prompts, or ask anything else... Press enter to send follow-up",
|
||||||
"CLICK_HERE": "Click here to update",
|
"CLICK_HERE": "Click here to update",
|
||||||
|
|||||||
Reference in New Issue
Block a user