Fix return code for email toggle to let the UI correctly react

This commit is contained in:
Johannes Zellner
2018-01-23 15:35:02 +01:00
parent 7e5afcfe6a
commit a2241a4e47
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
}