Fixup the mailinglist crud ui

This commit is contained in:
Johannes Zellner
2018-04-06 16:43:43 +02:00
parent c308bd90cb
commit de212f49c2
3 changed files with 135 additions and 51 deletions

View File

@@ -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) {