Skip to content

Commit 86ecd96

Browse files
authored
Merge pull request #20317 from guerler/fix_display_window_manager
[25.0] Avoid displaying dataset tab view in window manager
2 parents fa97351 + 1b1d959 commit 86ecd96

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

client/src/components/History/Content/ContentItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ function onDisplay() {
268268
// Only conditionally force to keep urls clean most of the time.
269269
if (route.path === itemUrls.value.display) {
270270
// @ts-ignore - monkeypatched router, drop with migration.
271-
router.push(itemUrls.value.display, { title: props.name, force: true });
271+
router.push(itemUrls.value.display, { force: true, preventWindowManager: true });
272272
} else if (itemUrls.value.display) {
273273
// @ts-ignore - monkeypatched router, drop with migration.
274-
router.push(itemUrls.value.display, { title: props.name });
274+
router.push(itemUrls.value.display, { preventWindowManager: true });
275275
}
276276
}
277277
}

client/src/entry/analysis/router-push.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { addSearchParams } from "utils/url";
77
* refresh if needed.
88
*
99
* @param {String} Location as parsed to original router.push()
10-
* @param {Object} Custom options, to provide a title and/or force reload
10+
* @param {Object} Custom options, to provide a title, force reload, and/or prevent window manager
1111
*/
1212
export function patchRouterPush(VueRouter) {
1313
const originalPush = VueRouter.prototype.push;
1414
VueRouter.prototype.push = function push(location, options = {}) {
1515
// add key to location to force component refresh
16-
const { title, force } = options;
16+
const { title, force, preventWindowManager } = options;
1717
if (force) {
1818
location = addSearchParams(location, { __vkey__: Date.now() });
1919
}
@@ -27,7 +27,7 @@ export function patchRouterPush(VueRouter) {
2727
}
2828
// show location in window manager
2929
const Galaxy = getGalaxyInstance();
30-
if (title && Galaxy.frame && Galaxy.frame.active) {
30+
if (title && !preventWindowManager && Galaxy.frame && Galaxy.frame.active) {
3131
Galaxy.frame.add({ title: title, url: location });
3232
return;
3333
}

0 commit comments

Comments
 (0)