Warn the user on group deletion if it still has members
This commit is contained in:
@@ -407,6 +407,13 @@ angular.module('Application').service('Client', ['$http', 'md5', 'Notification',
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.getGroup = function (groupId, callback) {
|
||||
$http.get(client.apiOrigin + '/api/v1/groups/' + groupId).success(function (data, status) {
|
||||
if (status !== 200 || typeof data !== 'object') return callback(new ClientError(status, data));
|
||||
callback(null, data);
|
||||
}).error(defaultErrorHandler(callback));
|
||||
};
|
||||
|
||||
Client.prototype.createGroup = function (name, callback) {
|
||||
var data = {
|
||||
name: name
|
||||
|
||||
Reference in New Issue
Block a user