Commit 1d731300 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

removing overlay as curator fixed

parent 57c2bd8d
......@@ -2524,7 +2524,13 @@ ServerConnector.updateModel = function (params) {
return self.sendPatchRequest(self.updateModelUrl(queryParams), filterParams);
};
/**
*
* @param {Object} params
* @param {number} params.overlayId
* @param {string} params.projectId
* @return {PromiseLike<T> | Promise<T>}
*/
ServerConnector.removeOverlay = function (params) {
var self = this;
var queryParams = {
......
......@@ -1218,7 +1218,8 @@ EditProjectDialog.prototype.revokePrivilege = function (user, privilegeType, pro
EditProjectDialog.prototype.removeOverlay = function (overlayId) {
var self = this;
return self.getServerConnector().removeOverlay({
overlayId: overlayId
overlayId: overlayId,
projectId: self.getProject().getProjectId()
}).then(function () {
return self.refreshOverlays();
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment