Skip to content

Commit

Permalink
fix params/routing, update api route
Browse files Browse the repository at this point in the history
  • Loading branch information
alicenstar committed Oct 18, 2023
1 parent 8240eaa commit 300856e
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 153 deletions.
25 changes: 14 additions & 11 deletions web/src/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ const Root = () => {
appSlugFromMetadata={state.appSlugFromMetadata || ""}
fetchingMetadata={state.fetchingMetadata}
onUploadSuccess={getAppsList}
isKurl={state.isKurl}
isHelmVM={state.isHelmVM}
isKurl={!!state.isKurl}
isHelmVM={!!state.isHelmVM}
/>
}
/>
Expand Down Expand Up @@ -585,7 +585,12 @@ const Root = () => {
{/* {state.adminConsoleMetadata?.isHelmVM && ( */}
<Route
path="/cluster/manage"
element={<HelmVMClusterManagement fromLicenseFlow={true} />}
element={
<HelmVMClusterManagement
fromLicenseFlow={true}
appName={state.selectedAppName || undefined}
/>
}
/>
{/* )} */}
{/* {(state.adminConsoleMetadata?.isKurl ||
Expand All @@ -594,15 +599,18 @@ const Root = () => {
path="/:slug/cluster/manage"
element={
state.adminConsoleMetadata?.isKurl ? (
<KurlClusterManagement appName={state.selectedAppName} />
<KurlClusterManagement />
) : (
<HelmVMClusterManagement />
)
}
/>
{/* )} */}
{/* {state.adminConsoleMetadata?.isHelmVM && ( */}
<Route path="/cluster/:nodeName" element={<HelmVMViewNode />} />
<Route
path="/:slug/cluster/:nodeName"
element={<HelmVMViewNode />}
/>
{/* )} */}
<Route
path="/gitops"
Expand Down Expand Up @@ -782,12 +790,7 @@ const Root = () => {
<Route path=":slug/license" element={<AppLicense />} />
<Route
path=":slug/registry-settings"
element={
<AppRegistrySettings
// app={selectedApp}
// updateCallback={refetchData}
/>
}
element={<AppRegistrySettings />}
/>
{/* WHERE IS SELECTEDAPP */}
{state.app?.isAppIdentityServiceSupported && (
Expand Down
Loading

0 comments on commit 300856e

Please sign in to comment.