Add mailbox restriction code
This commit is contained in:
@@ -29,6 +29,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
dmarc: { },
|
||||
ptr: { }
|
||||
};
|
||||
|
||||
$scope.expectedDnsRecordsTypes = [
|
||||
{ name: 'MX', value: 'mx' },
|
||||
{ name: 'DKIM', value: 'dkim' },
|
||||
@@ -37,6 +38,10 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
{ name: 'PTR', value: 'ptr' }
|
||||
];
|
||||
|
||||
$scope.openSubscriptionSetup = function () {
|
||||
Client.openSubscriptionSetup($scope.$parent.subscription);
|
||||
};
|
||||
|
||||
$scope.catchall = {
|
||||
mailboxes: [],
|
||||
busy: false,
|
||||
@@ -319,6 +324,11 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
},
|
||||
|
||||
show: function () {
|
||||
if ($scope.config.features.mailboxMaxCount && $scope.config.features.mailboxMaxCount <= $scope.mailboxes.mailboxes.length) {
|
||||
$('#subscriptionRequiredModal').modal('show');
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.mailboxes.add.reset();
|
||||
$('#mailboxAddModal').modal('show');
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user