Add setting for mail from validation

Fixes #454
This commit is contained in:
Girish Ramakrishnan
2018-05-23 23:34:09 -07:00
parent 7df1d388f0
commit 52d1d47030
3 changed files with 30 additions and 1 deletions

View File

@@ -181,6 +181,13 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
}
};
$scope.toggleMailFromValidation = function () {
Client.setMailFromValidation($scope.selectedDomain.domain, !$scope.selectedDomain.mailConfig.mailFromValidation, function (error) {
if (error) return console.error(error);
$scope.refreshDomain();
});
};
$scope.toggleEmailEnabled = function () {
if ($scope.selectedDomain.mailConfig.enabled) {
$('#disableEmailModal').modal('show');