Commit 2c87e4f4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

refresh list of genomes after genome is removed

parent b8921fd4
Pipeline #13189 passed with stage
in 10 minutes and 28 seconds
......@@ -41,6 +41,7 @@ minerva (14.0.0~beta.0) unstable; urgency=low
that are still in the system (#918)
* Bug fix: too long name for data overlay in info window is trimmed (#919)
* Bug fix: too long name in general overlay list is wrapped (#857)
* Bug fix: after genome is removed list of genomes is refreshed (#922)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 21 Aug 2019 21:00:00 +0200
......
......@@ -75,19 +75,19 @@ GenomeAdminPanel.prototype._createGui = function () {
title: 'Remove',
orderable: false
}],
columnDefs: [ {
targets: [ 0 ],
orderData: [ 0, 4 ]
columnDefs: [{
targets: [0],
orderData: [0, 4]
}, {
targets: [ 1 ],
orderData: [ 1, 4 ]
targets: [1],
orderData: [1, 4]
}, {
targets: [ 2 ],
orderData: [ 2, 4 ]
targets: [2],
orderData: [2, 4]
}, {
targets: [ 3 ],
orderData: [ 3, 4 ]
} ],
targets: [3],
orderData: [3, 4]
}],
order: [[1, "asc"], [4, "asc"]]
});
self.bindUserGuiPreference({
......@@ -113,6 +113,8 @@ GenomeAdminPanel.prototype._createGui = function () {
if (param.status) {
return self.getServerConnector().removeReferenceGenome({genomeId: $(button).attr("data")});
}
}).then(function () {
return self.onRefreshClicked();
}).catch(GuiConnector.alert);
});
......
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