mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-16 21:50:27 +00:00
fixed custom attribute settings page for search index (#13335)
This commit is contained in:
parent
82b06b1a79
commit
c6d8f90f81
@ -792,7 +792,7 @@ export const ENTITY_PATH = {
|
||||
containers: 'container',
|
||||
tags: 'tag',
|
||||
glossaries: 'glossary',
|
||||
searchindex: 'searchIndex',
|
||||
searchIndex: 'searchIndex',
|
||||
storedProcedure: 'storedProcedure',
|
||||
glossaryTerm: 'glossaryTerm',
|
||||
database: 'database',
|
||||
|
@ -140,7 +140,7 @@ const CustomEntityDetailV1 = () => {
|
||||
case ENTITY_PATH.containers:
|
||||
return PAGE_HEADERS.CONTAINER_CUSTOM_ATTRIBUTES;
|
||||
|
||||
case ENTITY_PATH.searchindex:
|
||||
case ENTITY_PATH.searchIndex:
|
||||
return PAGE_HEADERS.SEARCH_INDEX_CUSTOM_ATTRIBUTES;
|
||||
|
||||
case ENTITY_PATH.storedProcedure:
|
||||
|
@ -224,6 +224,18 @@ export const getGlobalSettingsMenuWithPermission = (
|
||||
category: i18next.t('label.custom-attribute-plural'),
|
||||
key: 'customAttributes',
|
||||
items: [
|
||||
{
|
||||
label: i18next.t('label.database'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.database',
|
||||
icon: <DatabaseIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.database-schema'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.databaseSchema',
|
||||
icon: <SchemaIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.table-plural'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
@ -231,10 +243,10 @@ export const getGlobalSettingsMenuWithPermission = (
|
||||
icon: <TableIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.topic-plural'),
|
||||
label: i18next.t('label.stored-procedure-plural'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.topics',
|
||||
icon: <TopicIcon className="side-panel-icons" />,
|
||||
key: 'customAttributes.storedProcedure',
|
||||
icon: <StoredProcedureIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.dashboard-plural'),
|
||||
@ -249,10 +261,10 @@ export const getGlobalSettingsMenuWithPermission = (
|
||||
icon: <PipelineIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.ml-model-plural'),
|
||||
label: i18next.t('label.topic-plural'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.mlModels',
|
||||
icon: <MlModelIcon className="side-panel-icons" />,
|
||||
key: 'customAttributes.topics',
|
||||
icon: <TopicIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.container-plural'),
|
||||
@ -260,36 +272,24 @@ export const getGlobalSettingsMenuWithPermission = (
|
||||
key: 'customAttributes.containers',
|
||||
icon: <StorageIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.ml-model-plural'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.mlModels',
|
||||
icon: <MlModelIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.search-index'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.searchIndex',
|
||||
icon: <SearchOutlined className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.stored-procedure-plural'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.storedProcedure',
|
||||
icon: <StoredProcedureIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.glossary-term'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.glossaryTerm',
|
||||
icon: <GlossaryIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.database'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.database',
|
||||
icon: <DatabaseIcon className="side-panel-icons" />,
|
||||
},
|
||||
{
|
||||
label: i18next.t('label.database-schema'),
|
||||
isProtected: Boolean(isAdminUser),
|
||||
key: 'customAttributes.databaseSchema',
|
||||
icon: <SchemaIcon className="side-panel-icons" />,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user