Skip to content
Snippets Groups Projects
Commit 4627316a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '922-automatic-refresh-during-removing-a-genome' into 'master'

Resolve "automatic refresh during removing a genome"

Closes #922

See merge request !910
parents b8921fd4 2c87e4f4
No related branches found
No related tags found
1 merge request!910Resolve "automatic refresh during removing a genome"
Pipeline #13200 canceled
......@@ -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);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment