diff --git a/frontend/src/components/CommunicationArea.vue b/frontend/src/components/CommunicationArea.vue
index c8fb92a7..646abd3e 100644
--- a/frontend/src/components/CommunicationArea.vue
+++ b/frontend/src/components/CommunicationArea.vue
@@ -23,18 +23,6 @@
-
-
-
-
{
- newEmailEditor.value.ccInput.setFocus()
- })
-}
-
-function toggleBCC() {
- newEmailEditor.value.bcc = !newEmailEditor.value.bcc
- newEmailEditor.value.bcc &&
- nextTick(() => {
- newEmailEditor.value.bccInput.setFocus()
- })
-}
-
function toggleEmailBox() {
if (showCommentBox.value) {
showCommentBox.value = false
diff --git a/frontend/src/components/Controls/MultiselectInput.vue b/frontend/src/components/Controls/MultiselectInput.vue
index ed8b4102..76fbd3cf 100644
--- a/frontend/src/components/Controls/MultiselectInput.vue
+++ b/frontend/src/components/Controls/MultiselectInput.vue
@@ -8,7 +8,7 @@
:label="value"
theme="gray"
variant="subtle"
- class="rounded-full"
+ class="rounded"
@keydown.delete.capture.stop="removeLastValue"
>
diff --git a/frontend/src/components/EmailEditor.vue b/frontend/src/components/EmailEditor.vue
index d60baaf1..db6ad0cf 100644
--- a/frontend/src/components/EmailEditor.vue
+++ b/frontend/src/components/EmailEditor.vue
@@ -9,60 +9,68 @@
:editable="editable"
>
-
- {{ __('SUBJECT') }}:
-
-
-
- {{ __('TO') }}:
-
-
-
- {{ __('CC') }}:
-
-
-
-
{{ __('BCC') }}:
-
+
+
+
{{ __('TO') }}:
+
+
+
+
+
+
+
+ {{ __('CC') }}:
+
+
+
+ {{ __('BCC') }}:
+
+
+
+ {{ __('SUBJECT') }}:
+
+
@@ -147,7 +155,7 @@ import EmailTemplateSelectorModal from '@/components/Modals/EmailTemplateSelecto
import { TextEditorFixedMenu, TextEditor, FileUploader, call } from 'frappe-ui'
import { validateEmail } from '@/utils'
import { EditorContent } from '@tiptap/vue-3'
-import { ref, computed, defineModel } from 'vue'
+import { ref, computed, defineModel, nextTick } from 'vue'
const props = defineProps({
placeholder: {
@@ -211,7 +219,7 @@ async function applyEmailTemplate(template) {
{
template_name: template.name,
doc: modelValue.value,
- }
+ },
)
if (template.subject) {
@@ -225,6 +233,16 @@ async function applyEmailTemplate(template) {
showEmailTemplateSelectorModal.value = false
}
+function toggleCC() {
+ cc.value = !cc.value
+ cc.value && nextTick(() => ccInput.value.setFocus())
+}
+
+function toggleBCC() {
+ bcc.value = !bcc.value
+ bcc.value && nextTick(() => bccInput.value.setFocus())
+}
+
defineExpose({
editor,
subject,
@@ -233,8 +251,6 @@ defineExpose({
toEmails,
ccEmails,
bccEmails,
- ccInput,
- bccInput,
})
const textEditorMenuButtons = [