Fix return code for email toggle to let the UI correctly react
This commit is contained in:
@@ -58,9 +58,9 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
}
|
||||
};
|
||||
|
||||
$scope.toggleEmail = function () {
|
||||
$scope.toggleEmailEnabled = function () {
|
||||
if ($scope.selectedDomain.mailConfig.enabled) {
|
||||
$scope.email.disable();
|
||||
$scope.disableEmail();
|
||||
$scope.refreshDomain();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user