From 8f4c2836446c0e123d8a9041c9e76d97d14e3232 Mon Sep 17 00:00:00 2001 From: Pete Date: Tue, 18 Jul 2023 13:23:19 +0200 Subject: [PATCH] Remove temp fixes --- static/js/src/navigation.js | 44 ------------------------------------- 1 file changed, 44 deletions(-) diff --git a/static/js/src/navigation.js b/static/js/src/navigation.js index 6124507f6b9..e8bf588bf44 100644 --- a/static/js/src/navigation.js +++ b/static/js/src/navigation.js @@ -420,47 +420,3 @@ if (accountContainer) { ); }); } - -// TEMP FIX - DE 06.07.23 -// UPDATES LXD LINK TARGET IN THE MEGANAV UNTIL -// WE MERGE THE NEW MEGANAV -function replaceLxdLink() { - const globalNav = document.querySelector("#canonical-global-nav"); - const lxdNavLinks = globalNav.querySelectorAll( - '[href="https://linuxcontainers.org/"]' - ); - lxdNavLinks.forEach(function (element) { - element.href = "/lxd"; - }); -} -replaceLxdLink(); - -// TEMP FIX - PETE F 15.05.23 -// UPDATES 'UBUNTU ADVANTAGE' TO 'UBUNTU PRO' IN THE MEGANAV UNTIL -// WE MERGE THE NEW MEGANAV -function replaceUbuntuAdvantage() { - const globalNav = document.querySelector("#canonical-global-nav"); - const targetElementsArray = globalNav.querySelectorAll( - "[href='https://ubuntu.com/support']" - ); - targetElementsArray.forEach(function (element) { - if (element.children.length) { - element.querySelector("h4").innerText = "Ubuntu Pro ›"; - } else { - element.innerText = "Ubuntu Pro"; - } - }); -} -replaceUbuntuAdvantage(); - -// TEMP FIX - MPT 03.07.23 -// REPLACES CANONICAL LOGO WITH CANONICAL LINK UNTIL -// WE MERGE THE NEW MEGANAV -function replaceGlobalNavLogo() { - const globalNavLogo = document.querySelector(".global-nav__header-logo"); - if (globalNavLogo) { - globalNavLogo.innerHTML = `Canonical`; - } -} - -replaceGlobalNavLogo();