Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
miaawong committed Aug 23, 2024
1 parent 18ed9b3 commit befab2d
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions web/src/components/apps/EmbeddedClusterManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -529,26 +529,25 @@ const EmbeddedClusterManagement = ({
</p>
<div className="tw-flex tw-gap-6 tw-items-center">
{" "}
{!Utilities.isInitialAppInstall(app) ||
(!isEmbeddedClusterWaitingForNodes && (
<>
<div className="tw-flex tw-gap-6">
<p>
View the nodes in your cluster, generate commands to add
nodes to the cluster, and view workloads running on each
node.
</p>
</div>
{Utilities.sessionRolesHasOneOf([rbacRoles.CLUSTER_ADMIN]) && (
<button
className="btn primary tw-ml-auto tw-w-fit tw-h-fit"
onClick={onAddNodeClick}
>
Add node
</button>
)}
</>
))}
{(!Utilities.isInitialAppInstall(app) ||
!isEmbeddedClusterWaitingForNodes) && (
<>
<div className="tw-flex tw-gap-6">
<p>
View the nodes in your cluster, generate commands to add nodes
to the cluster, and view workloads running on each node.
</p>
</div>
{Utilities.sessionRolesHasOneOf([rbacRoles.CLUSTER_ADMIN]) && (
<button
className="btn primary tw-ml-auto tw-w-fit tw-h-fit"
onClick={onAddNodeClick}
>
Add node
</button>
)}
</>
)}
</div>
{(Utilities.isInitialAppInstall(app) ||
isEmbeddedClusterWaitingForNodes) && (
Expand Down

0 comments on commit befab2d

Please sign in to comment.