Add initial placeholder page for email domains list
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<script setup>
|
||||
|
||||
import { ref, onMounted } from 'vue';
|
||||
import Section from '../components/Section.vue';
|
||||
import DomainsModel from '../models/DomainsModel.js';
|
||||
|
||||
const domainsModel = DomainsModel.create();
|
||||
|
||||
const domains = ref([]);
|
||||
|
||||
onMounted(async () => {
|
||||
const [error, result] = await domainsModel.list();
|
||||
if (error) return console.error(error);
|
||||
|
||||
domains.value = result;
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="content">
|
||||
<Section :title="$t('email.config.title')">
|
||||
<div>
|
||||
<div v-for="domain in domains" :key="domain.domain">
|
||||
<a :href="`#/email-domain/${domain.domain}`">{{ domain.domain }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</Section>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user