diff --git a/dashboard/src/views/EmailsView.vue b/dashboard/src/views/EmailsView.vue index ae37b5e91..a851c83aa 100644 --- a/dashboard/src/views/EmailsView.vue +++ b/dashboard/src/views/EmailsView.vue @@ -131,6 +131,30 @@ async function onSendTestMail(domain) { window.pankow.notify({ text: 'Mail sent', type: 'success' }); } +async function onChangeMailboxSharing(value) { + const [error] = await mailModel.setMailboxSharing(value); + if (error) { + mailboxSharingEnabled.value = !value; + return console.error(error); + } +} + +async function onChangeVirtualAllMail(value) { + const [error] = await mailModel.setVirtualAllMail(value); + if (error) { + virtualAllMailEnabled.value = !value; + return console.error(error); + } +} + +async function onChangeFts(value) { + const [error] = await mailModel.setFtsConfig(value); + if (error) { + ftsEnabled.value = !value; + return console.error(error); + } +} + onMounted(async () => { let [error, result] = await profileModel.get(); if (error) return console.error(error); @@ -246,7 +270,7 @@ onMounted(async () => {
{{ $t('emails.mailboxSharing.description') }}
- + @@ -254,7 +278,7 @@ onMounted(async () => {
- +
@@ -274,7 +298,7 @@ onMounted(async () => {
- +