chore: Default to rich content editor in website and email channel (#5357)

This commit is contained in:
Pranav Raj S
2022-09-13 05:41:42 -07:00
committed by GitHub
parent 59b31615ed
commit 8af27d861b
6 changed files with 3 additions and 58 deletions

View File

@@ -107,10 +107,8 @@
:recording-audio-duration-text="recordingAudioDurationText"
:recording-audio-state="recordingAudioState"
:is-recording-audio="isRecordingAudio"
:set-format-mode="setFormatMode"
:is-on-private-note="isOnPrivateNote"
:is-format-mode="showRichContentEditor"
:enable-rich-editor="isRichEditorEnabled"
:enter-to-send-enabled="enterToSendEnabled"
:enable-multiple-file-upload="enableMultipleFileUpload"
:has-whatsapp-templates="hasWhatsappTemplates"
@@ -229,17 +227,10 @@ export default {
accountId: 'getCurrentAccountId',
}),
showRichContentEditor() {
if (this.isOnPrivateNote) {
if (this.isOnPrivateNote || this.isRichEditorEnabled) {
return true;
}
if (this.isRichEditorEnabled) {
const {
display_rich_content_editor: displayRichContentEditor,
} = this.uiSettings;
return displayRichContentEditor;
}
return false;
},
assignedAgent: {
@@ -375,7 +366,7 @@ export default {
);
},
isRichEditorEnabled() {
return this.isAWebWidgetInbox || this.isAnEmailChannel;
return this.isAWebWidgetInbox || this.isAnEmailChannel || this.isAPIInbox;
},
showAudioRecorder() {
return !this.isOnPrivateNote && this.showFileUpload;
@@ -799,9 +790,6 @@ export default {
return messagePayload;
},
setFormatMode(value) {
this.updateUISettings({ display_rich_content_editor: value });
},
setCcEmails(value) {
this.bccEmails = value.bccEmails;
this.ccEmails = value.ccEmails;