Show warning if a mailbox domain does not have incoming enabled
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user