Fixes for the DomainDialog
This commit is contained in:
@@ -5,7 +5,7 @@ import { API_ORIGIN } from '../constants.js';
|
||||
function create() {
|
||||
const accessToken = localStorage.token;
|
||||
|
||||
return {
|
||||
const exposed = {
|
||||
async list() {
|
||||
let error, result;
|
||||
try {
|
||||
@@ -57,10 +57,9 @@ function create() {
|
||||
|
||||
if (error || result.status !== 204) return [error || result];
|
||||
|
||||
// TODO is this still needed on update? a syncdns should also do this
|
||||
// this is done so that an out-of-sync dkim key can be synced
|
||||
// [error] = await domainsModel.setDnsRecords({ domain: domain, type: 'mail' });
|
||||
// if (error) console.error(error); // not fatal for now
|
||||
[error] = await exposed.setDnsRecords({ domain: domain, type: 'mail' });
|
||||
if (error) console.error(error); // not fatal for now
|
||||
|
||||
return [null];
|
||||
},
|
||||
@@ -121,6 +120,8 @@ function create() {
|
||||
return [null, result.body];
|
||||
},
|
||||
};
|
||||
|
||||
return exposed;
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user