@@ -37,9 +37,11 @@ const UserGroup = lazy(() => import('../userGroups/UserGroup'))
37
37
const SSOLogin = lazy ( ( ) => import ( '../login/SSOLogin' ) )
38
38
const CustomChartList = lazy ( ( ) => import ( '../CustomChart/CustomChartList' ) )
39
39
const ScopedVariables = lazy ( ( ) => import ( '../scopedVariables/ScopedVariables' ) )
40
+ const CodeEditor = lazy ( ( ) => import ( '../CodeEditor/CodeEditor' ) )
40
41
const TagListContainer = importComponentFromFELibrary ( 'TagListContainer' )
41
42
const PluginsPolicy = importComponentFromFELibrary ( 'PluginsPolicy' )
42
43
const FilterConditions = importComponentFromFELibrary ( 'FilterConditions' )
44
+ const CatalogFramework = importComponentFromFELibrary ( 'CatalogFramework' )
43
45
44
46
export default function GlobalConfiguration ( props ) {
45
47
const location = useLocation ( )
@@ -389,7 +391,15 @@ function NavItem({ serverMode }) {
389
391
< div className = "flexbox flex-justify" > External Links</ div >
390
392
</ NavLink >
391
393
392
- { serverMode !== SERVER_MODE . EA_ONLY && window . _env_ . ENABLE_SCOPED_VARIABLES && (
394
+ { CatalogFramework && < NavLink
395
+ to = { URLS . GLOBAL_CONFIG_CATALOG_FRAMEWORK }
396
+ key = { URLS . GLOBAL_CONFIG_CATALOG_FRAMEWORK }
397
+ activeClassName = "active-route"
398
+ >
399
+ < div className = "flexbox flex-justify" > Catalog Framework</ div >
400
+ </ NavLink > }
401
+
402
+ { serverMode !== SERVER_MODE . EA_ONLY && window . _env_ . ENABLE_SCOPED_VARIABLES && (
393
403
< NavLink
394
404
to = { URLS . GLOBAL_CONFIG_SCOPED_VARIABLES }
395
405
key = { URLS . GLOBAL_CONFIG_SCOPED_VARIABLES }
@@ -574,6 +584,11 @@ function Body({ getHostURLConfig, checkList, serverMode, handleChecklistUpdate,
574
584
< ScopedVariables isSuperAdmin = { isSuperAdmin } />
575
585
</ Route >
576
586
) }
587
+ { CatalogFramework && (
588
+ < Route key = { URLS . GLOBAL_CONFIG_CATALOG_FRAMEWORK } path = { URLS . GLOBAL_CONFIG_CATALOG_FRAMEWORK } >
589
+ < CatalogFramework isSuperAdmin = { isSuperAdmin } CodeEditor = { CodeEditor } />
590
+ </ Route >
591
+ ) }
577
592
{ PluginsPolicy && (
578
593
< Route path = { URLS . GLOBAL_CONFIG_PLUGINS } >
579
594
< PluginsPolicy />
0 commit comments