Skip to content

Commit 305197c

Browse files
committed
feat: add the catalog framework
1 parent 6172db0 commit 305197c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/components/globalConfigurations/GlobalConfiguration.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const ScopedVariables = lazy(() => import('../scopedVariables/ScopedVariables'))
4040
const TagListContainer = importComponentFromFELibrary('TagListContainer')
4141
const PluginsPolicy = importComponentFromFELibrary('PluginsPolicy')
4242
const FilterConditions = importComponentFromFELibrary('FilterConditions')
43+
const CatalogFramework = importComponentFromFELibrary('CatalogFramework')
4344

4445
export default function GlobalConfiguration(props) {
4546
const location = useLocation()
@@ -384,6 +385,14 @@ function NavItem({ serverMode }) {
384385
<div className="flexbox flex-justify">External Links</div>
385386
</NavLink>
386387

388+
{CatalogFramework && <NavLink
389+
to={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK}
390+
key={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK}
391+
activeClassName="active-route"
392+
>
393+
<div className="flexbox flex-justify">Catalog Framework</div>
394+
</NavLink>}
395+
387396
{window._env_.ENABLE_SCOPED_VARIABLES && (
388397
<NavLink
389398
to={URLS.GLOBAL_CONFIG_SCOPED_VARIABLES}
@@ -568,6 +577,11 @@ function Body({ getHostURLConfig, checkList, serverMode, handleChecklistUpdate,
568577
<ScopedVariables isSuperAdmin={isSuperAdmin} />
569578
</Route>
570579
)}
580+
{CatalogFramework && (
581+
<Route key={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK} path={URLS.GLOBAL_CONFIG_CATALOG_FRAMEWORK}>
582+
<CatalogFramework isSuperAdmin={isSuperAdmin} />
583+
</Route>
584+
)}
571585
{PluginsPolicy && (
572586
<Route path={URLS.GLOBAL_CONFIG_PLUGINS}>
573587
<PluginsPolicy />

src/config/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export const URLS = {
6868
GLOBAL_CONFIG_PROJECT: '/global-config/projects',
6969
GLOBAL_CONFIG_LOGIN: '/global-config/login-service',
7070
GLOBAL_CONFIG_EXTERNAL_LINKS: '/global-config/external-links',
71+
GLOBAL_CONFIG_CATALOG_FRAMEWORK: '/global-config/catalog-framework',
7172
GLOBAL_CONFIG_SCOPED_VARIABLES: '/global-config/scoped-variables',
7273
GLOBAL_CONFIG_TAGS: '/global-config/tags',
7374
GLOBAL_CONFIG_PLUGINS: '/global-config/plugins',

0 commit comments

Comments
 (0)