mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove cluster online status checks from main layout header - it's cluster menu is only visible when cluster is online and connected
Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
This commit is contained in:
parent
e966d2049a
commit
6deda2aff6
@ -29,10 +29,10 @@ export const MainLayoutHeader = observer(({ cluster, className }: Props) => {
|
||||
<MenuItem onClick={actions.SHOW_SETTINGS}>
|
||||
<span>Settings</span>
|
||||
</MenuItem>
|
||||
{ cluster.online && <MenuItem onClick={actions.DISCONNECT}>
|
||||
<MenuItem onClick={actions.DISCONNECT}>
|
||||
<span>Disconnect</span>
|
||||
</MenuItem> }
|
||||
{ cluster.online && !cluster.isManaged && <MenuItem onClick={actions.REMOVE}>
|
||||
</MenuItem>
|
||||
{ !cluster.isManaged && <MenuItem onClick={actions.REMOVE}>
|
||||
<span>Remove</span>
|
||||
</MenuItem> }
|
||||
</Menu>;
|
||||
|
||||
@ -10,6 +10,7 @@ import { ErrorBoundary } from "../error-boundary";
|
||||
import { ResizeDirection, ResizeGrowthDirection, ResizeSide, ResizingAnchor } from "../resizing-anchor";
|
||||
import { MainLayoutHeader } from "./main-layout-header";
|
||||
import { Sidebar } from "./sidebar";
|
||||
import { workspaceStore } from "../../../common/workspace-store";
|
||||
|
||||
export interface MainLayoutProps {
|
||||
className?: any;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user