Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
479cc04f
Commit
479cc04f
authored
Nov 23, 2020
by
Piotr Gawron
Browse files
don't show error when project does not exist
parent
51734250
Pipeline
#34559
passed with stage
in 15 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
479cc04f
...
...
@@ -7,6 +7,8 @@ minerva (15.1.1) stable; urgency=medium
project
returned
access
denied
status
insted
Not
Found
(#
1370
)
*
Bug
fix
:
results
for
chembl
targetting
uniprot
without
gene
name
(
for
example
P0C2L1
)
could
crash
caching
(#
1377
)
*
Bug
fix
:
removing
non
-
existing
project
results
in
warning
not
an
error
message
(#
1367
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Thu
,
23
Nov
2020
15
:
00
:
00
+
0200
...
...
frontend-js/src/main/js/gui/admin/MapsAdminPanel.js
View file @
479cc04f
...
...
@@ -9,6 +9,7 @@ var EditProjectDialog = require('./EditProjectDialog');
var
LogListDialog
=
require
(
'
./LogListDialog
'
);
var
PrivilegeType
=
require
(
'
../../map/data/PrivilegeType
'
);
var
ConfigurationType
=
require
(
'
../../ConfigurationType
'
);
var
NetworkError
=
require
(
'
../../NetworkError
'
);
// noinspection JSUnusedLocalSymbols
var
logger
=
require
(
'
../../logger
'
);
...
...
@@ -163,7 +164,14 @@ MapsAdminPanel.prototype._createProjectTableRow = function () {
if
(
param
.
status
)
{
return
self
.
removeProject
(
$
(
button
).
attr
(
"
data
"
))
}
}).
catch
(
GuiConnector
.
alert
);
}).
catch
(
function
(
e
)
{
if
(
e
instanceof
NetworkError
&&
e
.
statusCode
===
404
)
{
GuiConnector
.
warn
(
"
Project does not exist
"
)
return
self
.
onRefreshClicked
();
}
else
{
GuiConnector
.
alert
(
e
);
}
});
});
$
(
projectsTable
).
on
(
"
click
"
,
"
[name='showEditDialog']
"
,
function
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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