This is an automated email from the ASF dual-hosted git repository. pinal pushed a commit to branch atlas-2.5 in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 3b2290b62aca7d2bf68b9baca7f8f50ed34b4b9c Author: Brijesh Bhalala <32086209+brijesh...@users.noreply.github.com> AuthorDate: Thu Mar 6 14:49:13 2025 +0530 ATLAS-4998: Replaced Swagger Logo with Atlas Logo (#303) Co-authored-by: farhan <farhan@Gagetzones-MacBook-Pro.local> (cherry picked from commit a5a05d8b4600b01cd3de87e77d89a7ce412d2f3b) --- build-tools/src/main/resources/ui-dist/index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/build-tools/src/main/resources/ui-dist/index.js b/build-tools/src/main/resources/ui-dist/index.js index 3ae40764c..932df7bd9 100644 --- a/build-tools/src/main/resources/ui-dist/index.js +++ b/build-tools/src/main/resources/ui-dist/index.js @@ -51,7 +51,19 @@ window.ui = ui; atlasLogo = gatewayUrl + "/img/atlas_logo.svg"; - $('#swagger-ui img').attr("src", atlasLogo); + setTimeout(() => { + const logoAnchor = document.querySelector(".swagger-ui .topbar a"); + + if (logoAnchor) { + const svgLogo = logoAnchor.querySelector("svg"); + if (svgLogo) svgLogo.remove(); + const img = document.createElement("img"); + img.src = atlasLogo; + img.alt = "Atlas Logo"; + img.style.height = "40px"; + logoAnchor.appendChild(img); + } + }, 500); fetchCsrfHeader(); }