Fix handling of collection element identifiers in history panel

This commit is contained in:
guerler
2020-10-14 18:07:23 +02:00
parent c12000db61
commit 4db6cc3c31
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -66,8 +66,9 @@ var DatasetListItemEdit = _super.extend(
const Galaxy = getGalaxyInstance();
if (Galaxy.router) {
ev.preventDefault();
const identifier = self.model.get("element_id") || self.model.get("id");
Galaxy.router.push("datasets/edit", {
dataset_id: self.model.attributes.id,
dataset_id: identifier,
});
}
},
+2 -1
View File
@@ -184,7 +184,8 @@ export var DatasetListItemView = _super.extend(
const Galaxy = getGalaxyInstance();
if (Galaxy.frame && Galaxy.frame.active) {
// Add dataset to frames.
Galaxy.frame.addDataset(self.model.get("id"));
const identifier = self.model.get("element_id") || self.model.get("id");
Galaxy.frame.addDataset(identifier);
ev.preventDefault();
}
};