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

don't allow to add gene mapping if genome is not defined

parent 48e06673
minerva (13.1.1) stable; urgency=medium
* Bug fix: adding gene mapping before the genome caused an error (#835)
-- Piotr Gawron <piotr.gawron@uni.lu> Fri, 28 Jun 2019 17:00:00 +0200
minerva (13.1.0) stable; urgency=medium
* Feature: annotators are more flexible - you can define set of input and
outputs used by annotator (#617)
......
......@@ -175,7 +175,8 @@ EditGenomeDialog.prototype.createGeneMappingTabContent = function () {
var result = Functions.createElement({
type: "div",
style: "margin-top:10px;"
style: "margin-top:10px;",
className: "minerva-gene-mapping-tab"
});
var geneMappingTable = Functions.createElement({
......@@ -513,6 +514,10 @@ EditGenomeDialog.prototype.refresh = function () {
//it should be simplified, but I couldn't make it work
dataTable.clear().rows.add(data).page(page).draw(false).page(page).draw(false);
if (self.isNew()) {
guiUtils.disableTab($(".minerva-gene-mapping-tab", self.getElement())[0], "First add a genome to be able to add mapping");
}
return self._fillOrganismSelect(genome);
});
};
......
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