Commit 3c47b9d6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

hide glyphs tab when necessary

parent 373e1169
Pipeline #13950 passed with stage
in 10 minutes and 59 seconds
......@@ -8,6 +8,7 @@ minerva (14.0.0~beta.2) unstable; urgency=low
* Bug fix: information about deprecated column is more clear about column
names (#838)
* Bug fix: version of the project is limited to 20 characters (#951)
* Bug fix: hide glyphs tab when necessary (#949)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 16 Sep 2019 21:00:00 +0200
......
......@@ -1404,6 +1404,7 @@ AddProjectDialog.prototype.setZipFileContent = function (file) {
guiUtils.hideTab(self, $(".minerva-project-overlays-tab", self.getElement())[0]);
guiUtils.hideTab(self, $(".minerva-project-submaps-tab", self.getElement())[0]);
guiUtils.hideTab(self, $(".minerva-project-overview-images-tab", self.getElement())[0]);
guiUtils.hideTab(self, $(".minerva-project-glyphs-tab", self.getElement())[0]);
return self.setZipEntries([]);
}
};
......
......@@ -156,6 +156,20 @@ describe('AddProjectDialog', function () {
return dialog.destroy();
});
});
it('glyphs', function () {
var dialog = createDialog();
var buf = fs.readFileSync("testFiles/map/complex_model_with_glyphs.zip");
buf.name = "complex_model_with_glyphs.zip";
return dialog.init().then(function () {
var dataTable = $($("[name='glyphsTable']", testDiv)[0]).DataTable();
assert.equal(0, dataTable.data().count());
return dialog.setZipFileContent(buf);
}).then(function () {
var dataTable = $($("[name='glyphsTable']", testDiv)[0]).DataTable();
assert.ok(dataTable.data().count() > 0);
return dialog.destroy();
});
});
});
describe('showAnnotatorsDialog', function () {
......
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