Skip to content

Commit c064cca

Browse files
committed
fix: redirection to chart store and hide scope variables in EA only mode
1 parent 215319c commit c064cca

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/ClusterNodes/ClusterOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const tippyForMetricsApi = () => {
7171
heading="Metrics API is not available"
7272
additionalContent={metricsApiTippyContent()}
7373
documentationLinkText="View metrics-server helm chart"
74-
documentationLink={`/dashboard${URLS.CHARTS_DISCOVER}/?appStoreName=metrics-server`}
74+
documentationLink={`/dashboard${URLS.CHARTS_DISCOVER}?appStoreName=metrics-server`}
7575
iconClassName="icon-dim-20 ml-8 fcn-5"
7676
/>
7777
</div>

src/components/globalConfigurations/GlobalConfiguration.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -679,20 +679,20 @@ const Body = ({ getHostURLConfig, checkList, serverMode, handleChecklistUpdate,
679679
]
680680
: []),
681681
]}
682-
{window._env_.ENABLE_SCOPED_VARIABLES && (
683-
<Route
684-
key={`${CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}-route`}
685-
path={CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}
686-
>
687-
<ScopedVariables isSuperAdmin={isSuperAdmin} />
688-
</Route>
689-
)}
690682
{CatalogFramework && (
691683
<Route key={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK} path={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK}>
692684
<CatalogFramework isSuperAdmin={isSuperAdmin} />
693685
</Route>
694686
)}
695687
{serverMode !== SERVER_MODE.EA_ONLY && [
688+
window._env_.ENABLE_SCOPED_VARIABLES && (
689+
<Route
690+
key={`${CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}-route`}
691+
path={CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}
692+
>
693+
<ScopedVariables isSuperAdmin={isSuperAdmin} />
694+
</Route>
695+
),
696696
DeploymentWindow && (
697697
<Route key={URLS.GLOBAL_CONFIG_DEPLOYMENT_WINDOW} path={URLS.GLOBAL_CONFIG_DEPLOYMENT_WINDOW}>
698698
<DeploymentWindow isSuperAdmin={isSuperAdmin} />

0 commit comments

Comments
 (0)