mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Show cluster name in sidebar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
17397b0637
commit
ff2d302b21
@ -45,4 +45,12 @@
|
||||
padding: $padding;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.cluster-name {
|
||||
padding: 1.25rem;
|
||||
font-weight: bold;
|
||||
font-size: 1.5rem;
|
||||
word-break: break-all;
|
||||
color: var(--textColorAccent);
|
||||
}
|
||||
}
|
||||
|
||||
@ -40,6 +40,8 @@ import { SidebarItem } from "./sidebar-item";
|
||||
import { Apps } from "../+apps";
|
||||
import * as routes from "../../../common/routes";
|
||||
import { Config } from "../+config";
|
||||
import { ClusterStore } from "../../../common/cluster-store";
|
||||
import { App } from "../app";
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
||||
@ -181,6 +183,9 @@ export class Sidebar extends React.Component<Props> {
|
||||
|
||||
return (
|
||||
<div className={cssNames(Sidebar.displayName, "flex column", className)}>
|
||||
<div className="cluster-name">
|
||||
{ClusterStore.getInstance().getById(App.clusterId).preferences.clusterName}
|
||||
</div>
|
||||
<div className={cssNames("sidebar-nav flex column box grow-fixed")}>
|
||||
<SidebarItem
|
||||
id="cluster"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user