Add mailinglists ui
This commit is contained in:
@@ -5,11 +5,13 @@ import { MultiSelect, InputGroup, Button, FormGroup } from 'pankow';
|
||||
import SettingsItem from './SettingsItem.vue';
|
||||
import DomainsModel from '../models/DomainsModel.js';
|
||||
import MailModel from '../models/MailModel.js';
|
||||
import MailboxesModel from '../models/MailboxesModel.js';
|
||||
|
||||
const props = defineProps([ 'domainConfig' ]);
|
||||
|
||||
const domainsModel = DomainsModel.create();
|
||||
const mailModel = MailModel.create();
|
||||
const mailboxesModel = MailboxesModel.create();
|
||||
|
||||
const busy = ref(true);
|
||||
const addresses = ref([]);
|
||||
@@ -46,7 +48,7 @@ onMounted(async () => {
|
||||
// only for inbound enabled but then we have extra rest calls
|
||||
|
||||
for (const domain of result) {
|
||||
const [error, result] = await mailModel.listMailboxes(domain.domain);
|
||||
const [error, result] = await mailboxesModel.list(domain.domain);
|
||||
if (error) return console.error(error);
|
||||
|
||||
allAddresses.value = allAddresses.value.concat(result.map(mailbox => {
|
||||
|
||||
Reference in New Issue
Block a user