Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dashboard/src/styles/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

.header-logo {
width: 180px;
padding-left: 12px;
}

.header-menu {
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/views/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const Header: React.FC<Header> = ({
};

const handleLogout = () => {
localStorage.setItem("atlas_ui", "v3");
localStorage.setItem("last_ui_load", "v3");
let path = getBaseUrl(window.location.pathname);
window.location.href = path + "/logout.html";
handleClose();
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/views/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Layout: React.FC = () => {
}, [getRemainingTime, isPrompted]);

const handleLogout = () => {
localStorage.setItem("atlas_ui", "v3");
localStorage.setItem("last_ui_load", "v3");
let path = getBaseUrl(window.location.pathname);
window.location.href = path + "/logout.html";
handleCloseSessionModal();
Expand Down
38 changes: 38 additions & 0 deletions dashboard/src/views/SideBar/SideBarBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
useRef,
} from "react";
import atlasLogo from "/img/atlas_logo.svg";
import apacheAtlasLogo from "/img/apache-atlas-logo.svg";
import {
matchRoutes,
Outlet,
Expand Down Expand Up @@ -221,6 +222,43 @@ const SideBarBody = (props: {
backgroundColor: "#034858",
}}
>
{/* Collapsed sidebar logo */}
{!open && (
<div
style={{
width: "100%",
textAlign: "center",
paddingLeft: "12px",
display: "flex",
alignItems: "center",
justifyContent: "center",
minHeight: "64px",
cursor: "pointer",
boxSizing: "border-box",
}}
onClick={() => {
navigate(
{
pathname: "/search",
},
{ replace: true }
);
}}
data-cy="apache-atlas-logo-collapsed"
>
<img
src={apacheAtlasLogo}
alt="Apache Atlas logo"
style={{
width: "29px",
height: "auto",
maxWidth: "100%",
display: "block",
}}
/>
</div>
)}

{open && (
<DrawerHeader
ref={headerRef}
Expand Down