Can send a request on the API to delete group logo.

This commit is contained in:
Pierre HUBERT
2018-07-04 14:07:16 +02:00
parent eb69734a38
commit 1d92a5bf1c
3 changed files with 55 additions and 1 deletions

View File

@ -95,6 +95,21 @@ ComunicWeb.components.groups.interface = {
var apiURI = "groups/upload_logo";
data.append("id", id);
ComunicWeb.common.api.makeFormDatarequest(apiURI, data, true, callback);
}
},
/**
* Delete user logo
*
* @param {Number} id The ID of the target group
* @param {Function} callback
*/
deleteLogo: function(id, callback){
//Perform the request over the API
var apiURI = "groups/delete_logo";
var params = {
id: id
};
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
};