Various fixes

This commit is contained in:
Antoine Nguyen
2025-06-24 18:15:40 +02:00
parent cd73a19596
commit 205bc4d057
26 changed files with 58 additions and 95 deletions
@@ -46,6 +46,12 @@
<v-spacer></v-spacer>
</v-toolbar>
</template>
<template #[`item.display_name`]="{ item }">
<template v-if="item.display_name">
{{ item.display_name }}
</template>
<template v-else> {{ item.fist_name }} {{ item.last_name }} </template>
</template>
<template #[`item.emails`]="{ item }">
{{ displayEmails(item.emails) }}
</template>
@@ -90,7 +90,7 @@ const removeAttachment = async (attachment) => {
attachments.value.splice(index, 1)
}
api.getUploadedAttachments(props.sessionUid).then((resp) => {
attachments.value = resp.data
api.getComposeSession(props.sessionUid).then((resp) => {
attachments.value = resp.data.attachments
})
</script>
@@ -263,7 +263,7 @@ const submit = async () => {
body.bcc = bcc
}
try {
await api.sendEmail(body)
await api.sendEmailFromComposeSession(route.query.uid, body)
router.push({ name: 'MailboxView' })
displayNotification({ msg: $gettext('Email sent') })
} catch (error) {