@@ -415,6 +415,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
remove: {
|
||||
busy: false,
|
||||
mailbox: null,
|
||||
deleteMails: true,
|
||||
|
||||
show: function (mailbox) {
|
||||
$scope.mailboxes.remove.mailbox = mailbox;
|
||||
@@ -425,7 +426,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
submit: function () {
|
||||
$scope.mailboxes.remove.busy = true;
|
||||
|
||||
Client.removeMailbox($scope.domain.domain, $scope.mailboxes.remove.mailbox.name, function (error) {
|
||||
Client.removeMailbox($scope.domain.domain, $scope.mailboxes.remove.mailbox.name, $scope.mailboxes.remove.deleteMails, function (error) {
|
||||
$scope.mailboxes.remove.busy = false;
|
||||
if (error) return console.error(error);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user