Skip to content

Commit

Permalink
Add event hook for non-bb-view center panel id setting, use it for da…
Browse files Browse the repository at this point in the history
…taset visualization.
  • Loading branch information
dannon committed Sep 19, 2018
1 parent 3f29d32 commit 0018ab9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client/galaxy/scripts/mvc/dataset/dataset-li-edit.js
Expand Up @@ -265,7 +265,8 @@ var DatasetListItemEdit = _super.extend(
}

if (visualizations.length >= 1) {
var url = Galaxy.root + "visualizations?dataset_id=" + this.model.get("id");
let dsid = this.model.get("id");
let url = Galaxy.root + "visualizations?dataset_id=" + dsid;
return faIconButton({
title: _l("Visualize this data"),
href: url,
Expand All @@ -280,6 +281,7 @@ var DatasetListItemEdit = _super.extend(
Galaxy.router.push("visualizations", {
dataset_id: this.model.get("id")
});
Galaxy.trigger("activate-hda", dsid);
}
}
});
Expand Down
Expand Up @@ -398,7 +398,10 @@ var CurrentHistoryView = _super.extend(
} catch (e){
this._setCurrentContentById();
}
}
},
"activate-hda": function(hdaId) {
this._setCurrentContentById(`dataset-${hdaId}`);
}
});
},

Expand Down

0 comments on commit 0018ab9

Please sign in to comment.