From 1b485679daf686200caa076f478ebcb52a104cfb Mon Sep 17 00:00:00 2001 From: Mia Wong Date: Fri, 23 Aug 2024 20:33:53 +0000 Subject: [PATCH] isInitialInstallOrRestore --- .../apps/EmbeddedClusterManagement.tsx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/web/src/components/apps/EmbeddedClusterManagement.tsx b/web/src/components/apps/EmbeddedClusterManagement.tsx index e8d5d20034..3fd9c40347 100644 --- a/web/src/components/apps/EmbeddedClusterManagement.tsx +++ b/web/src/components/apps/EmbeddedClusterManagement.tsx @@ -520,6 +520,10 @@ const EmbeddedClusterManagement = ({ ); }; + + const isInitialInstallOrRestore = + Utilities.isInitialAppInstall(app) || isEmbeddedClusterWaitingForNodes; + return (
@@ -528,9 +532,7 @@ const EmbeddedClusterManagement = ({ Nodes

- {" "} - {(!Utilities.isInitialAppInstall(app) || - !isEmbeddedClusterWaitingForNodes) && ( + {!isInitialInstallOrRestore && ( <>

@@ -538,20 +540,18 @@ const EmbeddedClusterManagement = ({ to the cluster, and view workloads running on each node.

- {Utilities.sessionRolesHasOneOf([rbacRoles.CLUSTER_ADMIN]) && - !Utilities.isInitialAppInstall(app) && ( - - )} + {Utilities.sessionRolesHasOneOf([rbacRoles.CLUSTER_ADMIN]) && ( + + )} )}
- {(Utilities.isInitialAppInstall(app) || - isEmbeddedClusterWaitingForNodes) && ( + {isInitialInstallOrRestore && (