Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
1d731300
Commit
1d731300
authored
Sep 16, 2019
by
Piotr Gawron
Browse files
removing overlay as curator fixed
parent
57c2bd8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/ServerConnector.js
View file @
1d731300
...
...
@@ -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
=
{
...
...
frontend-js/src/main/js/gui/admin/EditProjectDialog.js
View file @
1d731300
...
...
@@ -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
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment