Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Devrim Gunyel
core
Commits
ec3a13fa
Commit
ec3a13fa
authored
Oct 24, 2019
by
Piotr Gawron
Browse files
warning message improved
parent
5780f1d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
ec3a13fa
minerva
(
15.0.0
~
alpha
.0
)
stable
;
urgency
=
medium
*
Small
improvement
:
when
downloading
a
map
results
in
too
big
file
(>
1
MB
)
the
content
is
compressed
and
returned
as
a
zip
file
(#
348
)
*
Small
improvement
:
confirmation
dialog
when
removing
"general view"
overlays
contain
proper
warning
(#
809
)
*
Bug
fix
:
position
of
structural
state
is
preserved
on
upload
CellDesigner
file
(#
671
)
...
...
frontend-js/src/main/js/gui/admin/EditProjectDialog.js
View file @
ec3a13fa
...
...
@@ -506,8 +506,14 @@ EditProjectDialog.prototype._createOverlayTable = function () {
var
button
=
this
;
var
overlayId
=
parseInt
(
$
(
button
).
attr
(
"
data
"
));
var
overlay
=
self
.
_overlayById
[
overlayId
];
var
confirmationMessage
=
"
Do you want to delete overlay:
"
+
overlay
.
getName
()
+
"
?
"
;
if
(
!
overlay
.
getInputDataAvailable
())
{
confirmationMessage
+=
"
<br/><span style='color:red;font-weight:bold'>Warning: This contains one of the map's
"
+
"
diagrams and is required<br/>
"
+
"
for map display. Removing it cannot be undone.</span>
"
}
return
GuiConnector
.
showConfirmationDialog
({
message
:
"
Do you want to delete overlay:
"
+
overlay
.
getName
()
+
"
?
"
message
:
confirmationMessage
}).
then
(
function
(
confirmation
)
{
if
(
confirmation
)
{
$
(
button
).
attr
(
"
disabled
"
,
true
);
...
...
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