@@ -419,8 +419,9 @@ const NavItem = ({ serverMode }) => {
419
419
key = { `nav_item_${ index } ` }
420
420
to = { route . href }
421
421
data-testid = "user-authorization-link"
422
- className = { `cursor ${ collapsedState [ route . name ] ? '' : 'fw-6'
423
- } flex dc__content-space`}
422
+ className = { `cursor ${
423
+ collapsedState [ route . name ] ? '' : 'fw-6'
424
+ } flex dc__content-space`}
424
425
onClick = { ( e ) => {
425
426
handleGroupCollapsedState ( e , route )
426
427
} }
@@ -484,17 +485,18 @@ const NavItem = ({ serverMode }) => {
484
485
< div className = "flexbox flex-justify" > Catalog Framework</ div >
485
486
</ NavLink >
486
487
) }
487
- { window . _env_ . ENABLE_SCOPED_VARIABLES && (
488
- < NavLink
489
- to = { CommonURLS . GLOBAL_CONFIG_SCOPED_VARIABLES }
490
- key = { `${ CommonURLS . GLOBAL_CONFIG_SCOPED_VARIABLES } -nav-link` }
491
- activeClassName = "active-route"
492
- >
493
- < div className = "flexbox flex-justify" > Scoped Variables</ div >
494
- </ NavLink >
495
- ) }
496
488
{ serverMode !== SERVER_MODE . EA_ONLY && (
497
489
< >
490
+ { window . _env_ . ENABLE_SCOPED_VARIABLES && (
491
+ < NavLink
492
+ to = { CommonURLS . GLOBAL_CONFIG_SCOPED_VARIABLES }
493
+ key = { `${ CommonURLS . GLOBAL_CONFIG_SCOPED_VARIABLES } -nav-link` }
494
+ activeClassName = "active-route"
495
+ >
496
+ < div className = "flexbox flex-justify" > Scoped Variables</ div >
497
+ </ NavLink >
498
+ ) }
499
+
498
500
{ PluginsPolicy && (
499
501
< NavLink
500
502
to = { URLS . GLOBAL_CONFIG_PLUGINS }
@@ -679,20 +681,20 @@ const Body = ({ getHostURLConfig, checkList, serverMode, handleChecklistUpdate,
679
681
]
680
682
: [ ] ) ,
681
683
] }
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
- ) }
690
684
{ CatalogFramework && (
691
685
< Route key = { URLS . GLOBAL_CONFIG_CATALOG_FRAMEWORK } path = { URLS . GLOBAL_CONFIG_CATALOG_FRAMEWORK } >
692
686
< CatalogFramework isSuperAdmin = { isSuperAdmin } />
693
687
</ Route >
694
688
) }
695
689
{ serverMode !== SERVER_MODE . EA_ONLY && [
690
+ window . _env_ . ENABLE_SCOPED_VARIABLES && (
691
+ < Route
692
+ key = { `${ CommonURLS . GLOBAL_CONFIG_SCOPED_VARIABLES } -route` }
693
+ path = { CommonURLS . GLOBAL_CONFIG_SCOPED_VARIABLES }
694
+ >
695
+ < ScopedVariables isSuperAdmin = { isSuperAdmin } />
696
+ </ Route >
697
+ ) ,
696
698
DeploymentWindow && (
697
699
< Route key = { URLS . GLOBAL_CONFIG_DEPLOYMENT_WINDOW } path = { URLS . GLOBAL_CONFIG_DEPLOYMENT_WINDOW } >
698
700
< DeploymentWindow isSuperAdmin = { isSuperAdmin } />
0 commit comments