diff --git a/src/state/resourceList/mapExtResourceToNavNode.ts b/src/state/resourceList/mapExtResourceToNavNode.ts index 0c32476077..dc5abe4f68 100644 --- a/src/state/resourceList/mapExtResourceToNavNode.ts +++ b/src/state/resourceList/mapExtResourceToNavNode.ts @@ -1,7 +1,7 @@ import { getExtensibilityPath } from 'components/Extensibility/helpers/getExtensibilityPath'; import pluralize from 'pluralize'; -import { ExtResource, NavNode } from '../types'; +import { configFeaturesNames, ExtResource, NavNode } from '../types'; export const mapExtResourceToNavNode = (extRes: ExtResource) => { const node: NavNode = {} as NavNode; @@ -14,6 +14,11 @@ export const mapExtResourceToNavNode = (extRes: ExtResource) => { node.namespaced = extRes.general.scope === 'namespace'; node.apiGroup = extRes.general.resource.group || ''; node.apiVersion = extRes.general.resource.version; + if (extRes.general.customElement) { + node.requiredFeatures = [ + configFeaturesNames.EXTENSIBILITY_CUSTOM_COMPONENTS, + ]; + } return node; }; diff --git a/src/state/types.ts b/src/state/types.ts index 3d5341721f..db9e7a62d3 100644 --- a/src/state/types.ts +++ b/src/state/types.ts @@ -85,6 +85,7 @@ export type ExtGeneral = { icon?: string; id?: string; externalNodes?: ExtensibilityNodesExt[]; + customElement?: string; }; export type ExtResource = {