Skip to content

Commit

Permalink
fix: hide scope variable nav link in EA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eshankvaish committed Sep 24, 2024
1 parent c064cca commit 48844b1
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 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

0 comments on commit 48844b1

Please sign in to comment.