mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-30 18:13:23 +08:00
Fix visualization title and legacy history url
This commit is contained in:
@@ -144,10 +144,12 @@ export default {
|
||||
this.showTags = !this.showTags;
|
||||
},
|
||||
onVisualize() {
|
||||
const name = this.item.name || "";
|
||||
const title = `Visualization of ${name}`;
|
||||
const path = `visualizations?dataset_id=${this.item.id}`;
|
||||
const redirectParams = {
|
||||
path: path,
|
||||
title: "Dataset details",
|
||||
title: title,
|
||||
tryIframe: false,
|
||||
};
|
||||
if (!this.iframeAdd(redirectParams)) {
|
||||
|
||||
@@ -9,6 +9,7 @@ import BASE_MVC from "mvc/base-mvc";
|
||||
import _l from "utils/localization";
|
||||
import { mountNametags } from "components/Nametags";
|
||||
import { Toast } from "ui/toast";
|
||||
import { getAppRoot } from "onload/loadConfig";
|
||||
|
||||
var logNamespace = "dataset";
|
||||
/*==============================================================================
|
||||
@@ -187,7 +188,7 @@ export var DatasetListItemView = _super.extend(
|
||||
if (Galaxy.frame && Galaxy.frame.active) {
|
||||
// Add dataset to frames.
|
||||
const identifier = self.model.get("element_id") || self.model.get("id");
|
||||
const url = `datasets/${identifier}/display/?preview=True`;
|
||||
const url = `${getAppRoot()}datasets/${identifier}/display/?preview=True`;
|
||||
Galaxy.frame.add({ url });
|
||||
ev.preventDefault();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user