mail: add active flag to mailbox and lists

This commit is contained in:
Girish Ramakrishnan
2021-04-14 22:37:59 -07:00
parent e4076d7a75
commit 81c393153b
3 changed files with 29 additions and 10 deletions
+10 -6
View File
@@ -2504,7 +2504,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
var data = {
name: name,
ownerId: ownerId,
ownerType: ownerType
ownerType: ownerType,
active: true
};
post('/api/v1/mail/' + domain + '/mailboxes', data, null, function (error, data, status) {
@@ -2515,10 +2516,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.updateMailbox = function (domain, name, ownerId, ownerType, callback) {
Client.prototype.updateMailbox = function (domain, name, ownerId, ownerType, active, callback) {
var data = {
ownerId: ownerId,
ownerType: ownerType
ownerType: ownerType,
active: active
};
post('/api/v1/mail/' + domain + '/mailboxes/' + name, data, null, function (error, data, status) {
@@ -2606,7 +2608,8 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
var data = {
name: name,
members: members,
membersOnly: membersOnly
membersOnly: membersOnly,
active: true
};
post('/api/v1/mail/' + domain + '/lists', data, null, function (error, data, status) {
@@ -2617,10 +2620,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.updateMailingList = function (domain, name, members, membersOnly, callback) {
Client.prototype.updateMailingList = function (domain, name, members, membersOnly, active, callback) {
var data = {
members: members,
membersOnly: membersOnly
membersOnly: membersOnly,
active: active
};
post('/api/v1/mail/' + domain + '/lists/' + name, data, null, function (error, data, status) {