From f5e360fd4d37b1bd9b853f462436a8bbe3a64b75 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Mon, 5 Sep 2022 16:08:28 +0530 Subject: [PATCH] fix: Adding a private note clears the CC field in an Email inbox (#5366) --- .../components/widgets/conversation/ReplyBox.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index aaf6244c6..1eb2a765b 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -553,6 +553,9 @@ export default { } const messagePayload = this.getMessagePayload(newMessage); this.clearMessage(); + if (!this.isPrivate) { + this.clearEmailField(); + } this.sendMessage(messagePayload); this.hideEmojiPicker(); this.$emit('update:popoutReplyBox', false); @@ -601,9 +604,11 @@ export default { clearMessage() { this.message = ''; this.attachedFiles = []; + this.isRecordingAudio = false; + }, + clearEmailField() { this.ccEmails = ''; this.bccEmails = ''; - this.isRecordingAudio = false; }, toggleEmojiPicker() { this.showEmojiPicker = !this.showEmojiPicker; @@ -613,6 +618,7 @@ export default { this.isRecorderAudioStopped = !this.isRecordingAudio; if (!this.isRecordingAudio) { this.clearMessage(); + this.clearEmailField(); } }, toggleAudioRecorderPlayPause() {