diff --git a/dashboard/src/js/client.js b/dashboard/src/js/client.js index cd33ea495..758c9be27 100644 --- a/dashboard/src/js/client.js +++ b/dashboard/src/js/client.js @@ -1336,10 +1336,10 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }).error(defaultErrorHandler(callback)); }; - Client.prototype.addMailingList = function (domain, name, groupId, callback) { + Client.prototype.addMailingList = function (domain, name, members, callback) { var data = { name: name, - groupId: groupId + members: members }; post('/api/v1/mail/' + domain + '/lists', data).success(function(data, status) { @@ -1348,9 +1348,9 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }).error(defaultErrorHandler(callback)); }; - Client.prototype.updateMailingList = function (domain, name, groupId, callback) { + Client.prototype.updateMailingList = function (domain, name, members, callback) { var data = { - groupId: groupId + members: members }; post('/api/v1/mail/' + domain + '/lists/' + name, data).success(function(data, status) { diff --git a/dashboard/src/views/email.html b/dashboard/src/views/email.html index 433c55623..e3feb8d97 100644 --- a/dashboard/src/views/email.html +++ b/dashboard/src/views/email.html @@ -40,6 +40,23 @@ + + +