Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: redirection to chart store and hide scope variables in EA only mode #2079

Merged
merged 2 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ClusterNodes/ClusterOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const tippyForMetricsApi = () => {
heading="Metrics API is not available"
additionalContent={metricsApiTippyContent()}
documentationLinkText="View metrics-server helm chart"
documentationLink={`/dashboard${URLS.CHARTS_DISCOVER}/?appStoreName=metrics-server`}
documentationLink={`/dashboard${URLS.CHARTS_DISCOVER}?appStoreName=metrics-server`}
iconClassName="icon-dim-20 ml-8 fcn-5"
/>
</div>
Expand Down
40 changes: 21 additions & 19 deletions src/components/globalConfigurations/GlobalConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,9 @@ const NavItem = ({ serverMode }) => {
key={`nav_item_${index}`}
to={route.href}
data-testid="user-authorization-link"
className={`cursor ${collapsedState[route.name] ? '' : 'fw-6'
} flex dc__content-space`}
className={`cursor ${
collapsedState[route.name] ? '' : 'fw-6'
} flex dc__content-space`}
onClick={(e) => {
handleGroupCollapsedState(e, route)
}}
Expand Down Expand Up @@ -484,17 +485,18 @@ const NavItem = ({ serverMode }) => {
<div className="flexbox flex-justify">Catalog Framework</div>
</NavLink>
)}
{window._env_.ENABLE_SCOPED_VARIABLES && (
<NavLink
to={CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}
key={`${CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}-nav-link`}
activeClassName="active-route"
>
<div className="flexbox flex-justify">Scoped Variables</div>
</NavLink>
)}
{serverMode !== SERVER_MODE.EA_ONLY && (
<>
{window._env_.ENABLE_SCOPED_VARIABLES && (
<NavLink
to={CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}
key={`${CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}-nav-link`}
activeClassName="active-route"
>
<div className="flexbox flex-justify">Scoped Variables</div>
</NavLink>
)}

{PluginsPolicy && (
<NavLink
to={URLS.GLOBAL_CONFIG_PLUGINS}
Expand Down Expand Up @@ -679,20 +681,20 @@ const Body = ({ getHostURLConfig, checkList, serverMode, handleChecklistUpdate,
]
: []),
]}
{window._env_.ENABLE_SCOPED_VARIABLES && (
<Route
key={`${CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}-route`}
path={CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}
>
<ScopedVariables isSuperAdmin={isSuperAdmin} />
</Route>
)}
{CatalogFramework && (
<Route key={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK} path={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK}>
<CatalogFramework isSuperAdmin={isSuperAdmin} />
</Route>
)}
{serverMode !== SERVER_MODE.EA_ONLY && [
window._env_.ENABLE_SCOPED_VARIABLES && (
<Route
key={`${CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}-route`}
path={CommonURLS.GLOBAL_CONFIG_SCOPED_VARIABLES}
>
<ScopedVariables isSuperAdmin={isSuperAdmin} />
</Route>
),
DeploymentWindow && (
<Route key={URLS.GLOBAL_CONFIG_DEPLOYMENT_WINDOW} path={URLS.GLOBAL_CONFIG_DEPLOYMENT_WINDOW}>
<DeploymentWindow isSuperAdmin={isSuperAdmin} />
Expand Down
Loading