Fix visualization title and legacy history url

This commit is contained in:
guerler
2022-05-24 16:46:24 -04:00
parent dd87b34ffe
commit e2916c3b76
2 changed files with 5 additions and 2 deletions
@@ -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)) {
+2 -1
View File
@@ -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();
}