Add stub mail settings section

This commit is contained in:
Johannes Zellner
2020-08-17 22:44:01 +02:00
committed by Girish Ramakrishnan
parent 517db50712
commit 5f8b141f62
2 changed files with 191 additions and 0 deletions

View File

@@ -72,6 +72,73 @@ angular.module('Application').controller('EmailsController', ['$scope', '$locati
}
};
$scope.mailDomainChange = {
busy: false,
error: null,
mailDomain: '',
show: function () {
$scope.mailDomainChange.busy = false;
$scope.mailDomainChange.error = null;
$scope.mailDomainChange.mailDomain = $scope.config.mailFqdn;
$scope.mailDomainChangeForm.$setUntouched();
$scope.mailDomainChangeForm.$setPristine();
$('#mailDomainChangeModal').modal('show');
},
submit: function () {
console.log('tbd');
}
};
$scope.maxEmailSize = {
busy: false,
error: null,
size: 0,
currentSize: 0,
show: function() {
$scope.maxEmailSize.busy = false;
$scope.maxEmailSize.error = null;
$scope.maxEmailSize.size = 25 * 1024 * 1024;
$scope.maxEmailSize.currentSize = 25 * 1024 * 1024;
$scope.maxEmailSizeChangeForm.$setUntouched();
$scope.maxEmailSizeChangeForm.$setPristine();
$('#maxEmailSizeChangeModal').modal('show');
},
submit: function () {
console.log('tbd');
}
};
$scope.blockAllowLists = {
busy: false,
error: null,
allowList: '',
blockList: '',
show: function() {
$scope.blockAllowLists.busy = false;
$scope.blockAllowLists.error = null;
$scope.blockAllowLists.allowList = '';
$scope.blockAllowLists.blockList = '';
$scope.blockAllowListsChangeForm.$setUntouched();
$scope.blockAllowListsChangeForm.$setPristine();
$('#blockAllowListsChangeModal').modal('show');
},
submit: function () {
console.log('tbd');
}
}
$scope.testEmail = {
busy: false,
error: {},