Skip to content

Commit

Permalink
use same name
Browse files Browse the repository at this point in the history
  • Loading branch information
miaawong committed Aug 22, 2024
1 parent b54ca3b commit 468b772
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions web/src/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ const Root = () => {
isEmbeddedClusterEnabled={Boolean(
state.adminConsoleMetadata?.isEmbeddedCluster
)}
isEmbeddedClusterNodeWaiting={
isEmbeddedClusterWaitingForNodes={
state.isEmbeddedClusterWaitingForNodes
}
isGitOpsSupported={isGitOpsSupported()}
Expand Down Expand Up @@ -640,7 +640,7 @@ const Root = () => {
<KurlClusterManagement />
) : (
<EmbeddedClusterManagement
isEmbeddedClusterNodeWaiting={
isEmbeddedClusterWaitingForNodes={
state.isEmbeddedClusterWaitingForNodes
}
/>
Expand Down
8 changes: 4 additions & 4 deletions web/src/components/apps/EmbeddedClusterManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ type State = {

const EmbeddedClusterManagement = ({
fromLicenseFlow = false,
isEmbeddedClusterNodeWaiting = false,
isEmbeddedClusterWaitingForNodes = false,
}: {
fromLicenseFlow?: boolean;
isEmbeddedClusterNodeWaiting?: boolean;
isEmbeddedClusterWaitingForNodes?: boolean;
}) => {
const [state, setState] = useReducer(
(prevState: State, newState: Partial<State>) => ({
Expand Down Expand Up @@ -530,7 +530,7 @@ const EmbeddedClusterManagement = ({
<div className="tw-flex tw-gap-6 tw-items-center">
{" "}
{!Utilities.isInitialAppInstall(app) ||
(!isEmbeddedClusterNodeWaiting && (
(!isEmbeddedClusterWaitingForNodes && (
<>
<div className="tw-flex tw-gap-6">
<p>
Expand All @@ -551,7 +551,7 @@ const EmbeddedClusterManagement = ({
))}
</div>
{Utilities.isInitialAppInstall(app) ||
(isEmbeddedClusterNodeWaiting && (
(isEmbeddedClusterWaitingForNodes && (
<div className="tw-mt-4 tw-flex tw-flex-col">
<AddNodeInstructions />
<AddNodeCommands />
Expand Down
8 changes: 4 additions & 4 deletions web/src/components/shared/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Props = {
isIdentityServiceSupported: boolean;
isKurlEnabled: boolean;
isEmbeddedClusterEnabled: boolean;
isEmbeddedClusterNodeWaiting: boolean;
isEmbeddedClusterWaitingForNodes: boolean;
isSnapshotsSupported: boolean;
logo: string | null;
onLogoutError: (message: string) => void;
Expand Down Expand Up @@ -145,7 +145,7 @@ export class NavBar extends PureComponent<Props, State> {
fetchingMetadata,
isKurlEnabled,
isEmbeddedClusterEnabled,
isEmbeddedClusterNodeWaiting,
isEmbeddedClusterWaitingForNodes,
isGitOpsSupported,
isIdentityServiceSupported,
appsList,
Expand Down Expand Up @@ -209,7 +209,7 @@ export class NavBar extends PureComponent<Props, State> {
{Utilities.isLoggedIn() &&
appsList?.length > 0 &&
!isInitialEmbeddedInstall &&
!isEmbeddedClusterNodeWaiting && (
!isEmbeddedClusterWaitingForNodes && (
<div className="flex flex-auto left-items">
<div
className={classNames("NavItem u-position--relative flex", {
Expand Down Expand Up @@ -289,7 +289,7 @@ export class NavBar extends PureComponent<Props, State> {
</div>
)}
</div>
{Utilities.isLoggedIn() && !isEmbeddedClusterNodeWaiting && (
{Utilities.isLoggedIn() && !isEmbeddedClusterWaitingForNodes && (
<>
<NavBarDropdown
handleLogOut={this.handleLogOut}
Expand Down

0 comments on commit 468b772

Please sign in to comment.