fix: changed to/cc/bcc values to v-model
This commit is contained in:
parent
c72811489e
commit
127b354ba7
@ -16,7 +16,7 @@
|
|||||||
<span class="text-xs text-gray-500">TO:</span>
|
<span class="text-xs text-gray-500">TO:</span>
|
||||||
<MultiselectInput
|
<MultiselectInput
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
:values="modelValue.email ? [modelValue.email] : []"
|
v-model="toEmails"
|
||||||
:validate="validateEmail"
|
:validate="validateEmail"
|
||||||
error-message="Invalid email address"
|
error-message="Invalid email address"
|
||||||
/>
|
/>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
<span class="text-xs text-gray-500">CC:</span>
|
<span class="text-xs text-gray-500">CC:</span>
|
||||||
<MultiselectInput
|
<MultiselectInput
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
:values="[]"
|
v-model="ccEmails"
|
||||||
:validate="validateEmail"
|
:validate="validateEmail"
|
||||||
error-message="Invalid email address"
|
error-message="Invalid email address"
|
||||||
/>
|
/>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
<span class="text-xs text-gray-500">BCC:</span>
|
<span class="text-xs text-gray-500">BCC:</span>
|
||||||
<MultiselectInput
|
<MultiselectInput
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
:values="[]"
|
v-model="bccEmails"
|
||||||
:validate="validateEmail"
|
:validate="validateEmail"
|
||||||
error-message="Invalid email address"
|
error-message="Invalid email address"
|
||||||
/>
|
/>
|
||||||
@ -163,6 +163,10 @@ const textEditor = ref(null)
|
|||||||
const cc = ref(false)
|
const cc = ref(false)
|
||||||
const bcc = ref(false)
|
const bcc = ref(false)
|
||||||
|
|
||||||
|
const toEmails = ref(modelValue.value.email ? [modelValue.value.email] : [])
|
||||||
|
const ccEmails = ref([])
|
||||||
|
const bccEmails = ref([])
|
||||||
|
|
||||||
const editor = computed(() => {
|
const editor = computed(() => {
|
||||||
return textEditor.value.editor
|
return textEditor.value.editor
|
||||||
})
|
})
|
||||||
@ -171,7 +175,7 @@ function removeAttachment(attachment) {
|
|||||||
attachments.value = attachments.value.filter((a) => a !== attachment)
|
attachments.value = attachments.value.filter((a) => a !== attachment)
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({ editor, cc, bcc })
|
defineExpose({ editor, cc, bcc, toEmails, ccEmails, bccEmails })
|
||||||
|
|
||||||
const textEditorMenuButtons = [
|
const textEditorMenuButtons = [
|
||||||
'Paragraph',
|
'Paragraph',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user