From 6deda2aff6b03db256186c033a516114dccc7bf1 Mon Sep 17 00:00:00 2001 From: Alex Culliere Date: Mon, 8 Feb 2021 14:39:09 +0200 Subject: [PATCH] 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 --- src/renderer/components/layout/main-layout-header.tsx | 6 +++--- src/renderer/components/layout/main-layout.tsx | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/layout/main-layout-header.tsx b/src/renderer/components/layout/main-layout-header.tsx index c9445433fd..6108fc0745 100644 --- a/src/renderer/components/layout/main-layout-header.tsx +++ b/src/renderer/components/layout/main-layout-header.tsx @@ -29,10 +29,10 @@ export const MainLayoutHeader = observer(({ cluster, className }: Props) => { Settings - { cluster.online && + Disconnect - } - { cluster.online && !cluster.isManaged && + + { !cluster.isManaged && Remove } ; diff --git a/src/renderer/components/layout/main-layout.tsx b/src/renderer/components/layout/main-layout.tsx index 7be6148e3e..71757e88c2 100755 --- a/src/renderer/components/layout/main-layout.tsx +++ b/src/renderer/components/layout/main-layout.tsx @@ -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;