mail list: add members only checkbox
This commit is contained in:
@@ -2184,10 +2184,11 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.addMailingList = function (domain, name, members, callback) {
|
||||
Client.prototype.addMailingList = function (domain, name, members, membersOnly, callback) {
|
||||
var data = {
|
||||
name: name,
|
||||
members: members
|
||||
members: members,
|
||||
membersOnly: membersOnly
|
||||
};
|
||||
|
||||
post('/api/v1/mail/' + domain + '/lists', data, null, function (error, data, status) {
|
||||
@@ -2198,9 +2199,10 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.updateMailingList = function (domain, name, members, callback) {
|
||||
Client.prototype.updateMailingList = function (domain, name, members, membersOnly, callback) {
|
||||
var data = {
|
||||
members: members
|
||||
members: members,
|
||||
membersOnly: membersOnly
|
||||
};
|
||||
|
||||
post('/api/v1/mail/' + domain + '/lists/' + name, data, null, function (error, data, status) {
|
||||
|
||||
Reference in New Issue
Block a user