From 65a0baa4ee967b827e34dec08b83fbd3c0478c73 Mon Sep 17 00:00:00 2001 From: guerler Date: Tue, 30 Aug 2022 18:44:34 -0400 Subject: [PATCH] Add reusable path helper, consolidate use Only allow window manager in analysis app Restore original window manager --- .../src/components/Masthead/initMasthead.js | 7 ++-- client/src/entry/analysis/App.vue | 20 ++++++------ client/src/entry/analysis/menu.js | 11 +++---- client/src/layout/masthead.js | 32 +++---------------- client/src/utils/redirect.js | 12 +++++++ 5 files changed, 35 insertions(+), 47 deletions(-) diff --git a/client/src/components/Masthead/initMasthead.js b/client/src/components/Masthead/initMasthead.js index 76480eb4473..f4303bf5b7c 100644 --- a/client/src/components/Masthead/initMasthead.js +++ b/client/src/components/Masthead/initMasthead.js @@ -2,20 +2,17 @@ * Temporary function used to mount the masthead inside the current application. * This function is exposed with the rest of the page-globals in bundledEntries. */ -import { MastheadState, mountMasthead } from "../../layout/masthead"; +import { mountMasthead } from "../../layout/masthead"; import $ from "jquery"; export function initMasthead(config, container) { console.log("initMasthead"); - const $masthead = $("#masthead"); - if (config.hide_masthead) { $masthead.remove(); } else { if (container) { - const mastheadState = new MastheadState(); - mountMasthead(container, config, mastheadState); + mountMasthead(container, config); } } } diff --git a/client/src/entry/analysis/App.vue b/client/src/entry/analysis/App.vue index 5083d852ab9..9c6a5242658 100644 --- a/client/src/entry/analysis/App.vue +++ b/client/src/entry/analysis/App.vue @@ -7,9 +7,9 @@ id="masthead" :display-galaxy-brand="config.display_galaxy_brand" :brand="config.brand" - :brand-link="staticUrlToPrefixed(config.logo_url)" - :brand-image="staticUrlToPrefixed(config.logo_src)" - :brand-image-secondary="staticUrlToPrefixed(config.logo_src_secondary)" + :brand-link="getPath(config.logo_url)" + :brand-image="getPath(config.logo_src)" + :brand-image-secondary="getPath(config.logo_src_secondary)" :base-tabs="baseTabs" :window-tab="windowTab" />