mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
Various fixes
This commit is contained in:
@@ -94,8 +94,8 @@ export default {
|
||||
}
|
||||
return repository.post('/webmail/emails/flag/', body)
|
||||
},
|
||||
sendEmail(body) {
|
||||
return repository.post('/webmail/emails/send/', body)
|
||||
sendEmailFromComposeSession(uid, body) {
|
||||
return repository.post(`/webmail/compose-sessions/${uid}/send/`, body)
|
||||
},
|
||||
getComposeSession(uid) {
|
||||
return repository.get(`/webmail/compose-sessions/${uid}/`)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -134,7 +134,7 @@ onMounted(() => {
|
||||
capabilitiesApi.getCapabilities().then((response) => {
|
||||
isRspamdVisible.value = 'rspamd' in response.data.capabilities
|
||||
if (isRspamdVisible.value) {
|
||||
rspamd_url.value =
|
||||
rspamdUrl.value =
|
||||
response.data.capabilities.rspamd.location || '/rspamd'
|
||||
}
|
||||
})
|
||||
|
||||
@@ -34,7 +34,7 @@ export default defineConfig({
|
||||
}),
|
||||
],
|
||||
base: '/',
|
||||
define: { 'process.env': {}, __VUE_OPTIONS_API__: false },
|
||||
define: { 'process.env': {} },
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
|
||||
Reference in New Issue
Block a user