@@ -520,6 +520,10 @@ const EmbeddedClusterManagement = ({
520
520
</ >
521
521
) ;
522
522
} ;
523
+
524
+ const isInitialInstallOrRestore =
525
+ Utilities . isInitialAppInstall ( app ) || isEmbeddedClusterWaitingForNodes ;
526
+
523
527
return (
524
528
< div className = "EmbeddedClusterManagement--wrapper container u-overflow--auto u-paddingTop--50 tw-font-sans" >
525
529
< KotsPageTitle pageName = "Cluster Management" />
@@ -528,30 +532,26 @@ const EmbeddedClusterManagement = ({
528
532
Nodes
529
533
</ p >
530
534
< div className = "tw-flex tw-gap-6 tw-items-center" >
531
- { " " }
532
- { ( ! Utilities . isInitialAppInstall ( app ) ||
533
- ! isEmbeddedClusterWaitingForNodes ) && (
535
+ { ! isInitialInstallOrRestore && (
534
536
< >
535
537
< div className = "tw-flex tw-gap-6" >
536
538
< p >
537
539
View the nodes in your cluster, generate commands to add nodes
538
540
to the cluster, and view workloads running on each node.
539
541
</ p >
540
542
</ div >
541
- { Utilities . sessionRolesHasOneOf ( [ rbacRoles . CLUSTER_ADMIN ] ) &&
542
- ! Utilities . isInitialAppInstall ( app ) && (
543
- < button
544
- className = "btn primary tw-ml-auto tw-w-fit tw-h-fit"
545
- onClick = { onAddNodeClick }
546
- >
547
- Add node
548
- </ button >
549
- ) }
543
+ { Utilities . sessionRolesHasOneOf ( [ rbacRoles . CLUSTER_ADMIN ] ) && (
544
+ < button
545
+ className = "btn primary tw-ml-auto tw-w-fit tw-h-fit"
546
+ onClick = { onAddNodeClick }
547
+ >
548
+ Add node
549
+ </ button >
550
+ ) }
550
551
</ >
551
552
) }
552
553
</ div >
553
- { ( Utilities . isInitialAppInstall ( app ) ||
554
- isEmbeddedClusterWaitingForNodes ) && (
554
+ { isInitialInstallOrRestore && (
555
555
< div className = "tw-mt-4 tw-flex tw-flex-col" >
556
556
< AddNodeInstructions />
557
557
< AddNodeCommands />
0 commit comments