mailbox: select group as owner

This commit is contained in:
Girish Ramakrishnan
2020-11-12 23:53:02 -08:00
parent c2799658ba
commit 42d8dae900
3 changed files with 35 additions and 28 deletions

View File

@@ -2350,10 +2350,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.addMailbox = function (domain, name, userId, callback) {
Client.prototype.addMailbox = function (domain, name, ownerId, ownerType, callback) {
var data = {
name: name,
userId: userId
ownerId: ownerId,
ownerType: ownerType
};
post('/api/v1/mail/' + domain + '/mailboxes', data, null, function (error, data, status) {
@@ -2364,9 +2365,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.updateMailbox = function (domain, name, userId, callback) {
Client.prototype.updateMailbox = function (domain, name, ownerId, ownerType, callback) {
var data = {
userId: userId
ownerId: ownerId,
ownerType: ownerType
};
post('/api/v1/mail/' + domain + '/mailboxes/' + name, data, null, function (error, data, status) {