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
154e2555
Commit
154e2555
authored
Jan 27, 2020
by
Piotr Gawron
Browse files
when there is no background show proper error message
parent
71b8b5a8
Pipeline
#20125
passed with stage
in 23 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
154e2555
...
...
@@ -16,6 +16,8 @@ minerva (14.0.8) stable; urgency=medium
* Bug fix: upload from zip file allowed empty overlay name (#1065)
* Bug fix: genome browser slider didn'
t
work
properly
in
Safari
on
non
-
default
Browser
zoom
level
(#
1048
)
*
Bug
fix
:
project
without
background
overlay
but
with
some
custom
data
overlays
crashed
with
an
error
(#
1066
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Thu
,
23
Jan
2020
12
:
00
:
00
+
0200
...
...
frontend-js/src/main/js/gui/leftPanel/OverlayPanel.js
View file @
154e2555
...
...
@@ -496,6 +496,9 @@ OverlayPanel.prototype.refresh = function (showDefault) {
if
(
overlaysFromServer
.
length
===
0
)
{
return
Promise
.
reject
(
new
ValidationError
(
"
Project doesn't have a background defined. Please re-upload map in admin panel.
"
));
}
if
(
self
.
getMap
().
getBackgroundDataOverlay
()
==
null
)
{
return
Promise
.
reject
(
new
ValidationError
(
"
Project doesn't have a background defined. Please re-upload map in admin panel.
"
));
}
var
id
=
self
.
getMap
().
getBackgroundDataOverlay
().
getId
();
selectedOverlay
[
id
]
=
true
;
}
...
...
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