Skip to content

Commit

Permalink
uncomment route protection
Browse files Browse the repository at this point in the history
  • Loading branch information
alicenstar committed Oct 20, 2023
1 parent c728730 commit cea57b1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions web/src/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -592,22 +592,22 @@ const Root = () => {
/>
</>
)}
{/* {(state.adminConsoleMetadata?.isKurl ||
state.adminConsoleMetadata?.isHelmVM) && ( */}
<Route
path="/cluster/manage"
element={
state.adminConsoleMetadata?.isKurl ? (
<KurlClusterManagement />
) : (
<HelmVMClusterManagement />
)
}
/>
{/* )}
{state.adminConsoleMetadata?.isHelmVM && ( */}
<Route path="/cluster/:nodeName" element={<HelmVMViewNode />} />
{/* )} */}
{(state.adminConsoleMetadata?.isKurl ||
state.adminConsoleMetadata?.isHelmVM) && (
<Route
path="/cluster/manage"
element={
state.adminConsoleMetadata?.isKurl ? (
<KurlClusterManagement />
) : (
<HelmVMClusterManagement />
)
}
/>
)}
{state.adminConsoleMetadata?.isHelmVM && (
<Route path="/cluster/:nodeName" element={<HelmVMViewNode />} />
)}
<Route
path="/gitops"
element={<GitOps appName={state.selectedAppName || ""} />}
Expand Down

0 comments on commit cea57b1

Please sign in to comment.