Show warning if a mailbox domain does not have incoming enabled

This commit is contained in:
Johannes Zellner
2025-09-30 17:27:53 +02:00
parent f7c85d8aa2
commit 1e599731b8
4 changed files with 22 additions and 5 deletions
+11
View File
@@ -6,6 +6,17 @@ function create() {
const accessToken = localStorage.token;
return {
async list() {
let result;
try {
result = await fetcher.get(`${API_ORIGIN}/api/v1/mail`, { access_token: accessToken });
} catch (e) {
return [e];
}
if (result.status !== 200) return [result];
return [null, result.body.domains];
},
async config(domain) {
let result;
try {