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

layers are always invisible

parent f6eb9a12
Pipeline #13120 passed with stage
in 9 minutes and 32 seconds
......@@ -2,6 +2,8 @@ minerva (14.0.0~beta.0) unstable; urgency=low
* Small improvement: sorting by columns that doesn't make sense in admin panel
is disabled (#895)
* Small improvement: version of minerva is visible in map browser panel
* Small improvement: CellDesigner layers are always visualized as pathways
(#813)
* Bug fix: work on FF Private Window mode could cause logout or raise an
error on when opening new tab with minerva (#892)
* Bug fix: fetching list of miRnas resulted sometimes in "Internal Server
......
......@@ -33,6 +33,7 @@ import lcsb.mapviewer.model.ProjectStatus;
import lcsb.mapviewer.model.cache.UploadedFileEntry;
import lcsb.mapviewer.model.map.*;
import lcsb.mapviewer.model.map.layout.*;
import lcsb.mapviewer.model.map.layout.graphics.Layer;
import lcsb.mapviewer.model.map.model.*;
import lcsb.mapviewer.model.user.*;
import lcsb.mapviewer.model.user.annotator.AnnotatorData;
......@@ -734,6 +735,18 @@ public class ProjectService implements IProjectService {
project.addModel(model);
}
Model topModel = project.getModels().iterator().next().getModel();
Set<Model> models = new HashSet<>();
models.add(topModel);
for (ModelSubmodelConnection connection : topModel.getSubmodelConnections()) {
models.add(connection.getSubmodel().getModel());
}
for (Model m : models) {
for (Layer l : m.getLayers()) {
l.setVisible(false);
}
}
assignZoomLevelDataToModel(topModel);
dbProject.setNotifyEmail(params.getNotifyEmail());
......
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