mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 05:45:37 +08:00
Don't fail rest of multi-action queue when attempting to purge a collection.
Fixes https://github.com/galaxyproject/galaxy/issues/5117.
This commit is contained in:
@@ -275,7 +275,12 @@ var HistoryViewEdit = _super.extend(
|
||||
func: function() {
|
||||
if (confirm(_l("This will permanently remove the data in your datasets. Are you sure?"))) {
|
||||
var action = HDA_MODEL.HistoryDatasetAssociation.prototype.purge;
|
||||
panel.getSelectedModels().ajaxQueue(action);
|
||||
const historyContents = panel.getSelectedModels();
|
||||
const selectedDatasets = historyContents.filter(
|
||||
c =>
|
||||
c.get("history_content_type") == "dataset"
|
||||
)
|
||||
historyContents.ajaxQueue(action, {}, selectedDatasets);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user