Commit 85672793 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '944-minervanet-error-report-111' into 'master'

Resolve "MINERVANET - Error Report 111"

Closes #944

See merge request minerva/core!930
parents b3fb6428 f9e3abfd
Pipeline #13870 passed with stage
in 14 minutes and 20 seconds
......@@ -2,6 +2,7 @@ minerva (14.0.0~beta.2) unstable; urgency=low
* Bug fix: allow user to remove own comments (#931)
* Bug fix: validation of project name length is provided (#950)
* Bug fix: after reducing privileges on himself interface is refreshed (#948)
* Bug fix: removing overlays as curator in admin panel fixed (#944)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 16 Sep 2019 21:00:00 +0200
......
......@@ -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();
});
......
Markdown is supported
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