Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frontend/src/components/CommunicationArea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
newEmailEditor.cc = false
newEmailEditor.bcc = false
newEmail = ''
attachments.value = []
},
}"
:editable="showEmailBox"
Expand All @@ -70,6 +71,7 @@
onClick: () => {
showCommentBox = false
newComment = ''
attachments.value = []
},
}"
:editable="showCommentBox"
Expand Down Expand Up @@ -222,6 +224,7 @@ async function submitEmail() {
showEmailBox.value = false
await sendMail()
newEmail.value = ''
attachments.value = []
reload.value = true
emit('scroll')
capture('email_sent', { doctype: props.doctype })
Expand All @@ -233,6 +236,7 @@ async function submitComment() {
showCommentBox.value = false
await sendComment()
newComment.value = ''
attachments.value = []
reload.value = true
emit('scroll')
capture('comment_sent', { doctype: props.doctype })
Expand All @@ -257,5 +261,6 @@ defineExpose({
show: showEmailBox,
showComment: showCommentBox,
editor: newEmailEditor,
attachments: attachments,
})
</script>