Call the new setDnsRecords route

This commit is contained in:
Girish Ramakrishnan
2018-07-25 10:51:58 -07:00
parent 91ecab08da
commit be86a3022f
2 changed files with 14 additions and 9 deletions

View File

@@ -204,7 +204,12 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
Client.enableMailForDomain($scope.selectedDomain.domain, true , function (error) {
if (error) return console.error(error);
$scope.refreshDomain();
Client.setDnsRecords($scope.selectedDomain.domain, function (error) {
if (error) return console.error(error);
$scope.refreshDomain();
});
});
};