mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-18 14:39:44 +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',
|
containers: 'container',
|
||||||
tags: 'tag',
|
tags: 'tag',
|
||||||
glossaries: 'glossary',
|
glossaries: 'glossary',
|
||||||
searchindex: 'searchIndex',
|
searchIndex: 'searchIndex',
|
||||||
storedProcedure: 'storedProcedure',
|
storedProcedure: 'storedProcedure',
|
||||||
glossaryTerm: 'glossaryTerm',
|
glossaryTerm: 'glossaryTerm',
|
||||||
database: 'database',
|
database: 'database',
|
||||||
|
@ -140,7 +140,7 @@ const CustomEntityDetailV1 = () => {
|
|||||||
case ENTITY_PATH.containers:
|
case ENTITY_PATH.containers:
|
||||||
return PAGE_HEADERS.CONTAINER_CUSTOM_ATTRIBUTES;
|
return PAGE_HEADERS.CONTAINER_CUSTOM_ATTRIBUTES;
|
||||||
|
|
||||||
case ENTITY_PATH.searchindex:
|
case ENTITY_PATH.searchIndex:
|
||||||
return PAGE_HEADERS.SEARCH_INDEX_CUSTOM_ATTRIBUTES;
|
return PAGE_HEADERS.SEARCH_INDEX_CUSTOM_ATTRIBUTES;
|
||||||
|
|
||||||
case ENTITY_PATH.storedProcedure:
|
case ENTITY_PATH.storedProcedure:
|
||||||
|
@ -224,6 +224,18 @@ export const getGlobalSettingsMenuWithPermission = (
|
|||||||
category: i18next.t('label.custom-attribute-plural'),
|
category: i18next.t('label.custom-attribute-plural'),
|
||||||
key: 'customAttributes',
|
key: 'customAttributes',
|
||||||
items: [
|
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'),
|
label: i18next.t('label.table-plural'),
|
||||||
isProtected: Boolean(isAdminUser),
|
isProtected: Boolean(isAdminUser),
|
||||||
@ -231,10 +243,10 @@ export const getGlobalSettingsMenuWithPermission = (
|
|||||||
icon: <TableIcon className="side-panel-icons" />,
|
icon: <TableIcon className="side-panel-icons" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18next.t('label.topic-plural'),
|
label: i18next.t('label.stored-procedure-plural'),
|
||||||
isProtected: Boolean(isAdminUser),
|
isProtected: Boolean(isAdminUser),
|
||||||
key: 'customAttributes.topics',
|
key: 'customAttributes.storedProcedure',
|
||||||
icon: <TopicIcon className="side-panel-icons" />,
|
icon: <StoredProcedureIcon className="side-panel-icons" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18next.t('label.dashboard-plural'),
|
label: i18next.t('label.dashboard-plural'),
|
||||||
@ -249,10 +261,10 @@ export const getGlobalSettingsMenuWithPermission = (
|
|||||||
icon: <PipelineIcon className="side-panel-icons" />,
|
icon: <PipelineIcon className="side-panel-icons" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18next.t('label.ml-model-plural'),
|
label: i18next.t('label.topic-plural'),
|
||||||
isProtected: Boolean(isAdminUser),
|
isProtected: Boolean(isAdminUser),
|
||||||
key: 'customAttributes.mlModels',
|
key: 'customAttributes.topics',
|
||||||
icon: <MlModelIcon className="side-panel-icons" />,
|
icon: <TopicIcon className="side-panel-icons" />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: i18next.t('label.container-plural'),
|
label: i18next.t('label.container-plural'),
|
||||||
@ -260,36 +272,24 @@ export const getGlobalSettingsMenuWithPermission = (
|
|||||||
key: 'customAttributes.containers',
|
key: 'customAttributes.containers',
|
||||||
icon: <StorageIcon className="side-panel-icons" />,
|
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'),
|
label: i18next.t('label.search-index'),
|
||||||
isProtected: Boolean(isAdminUser),
|
isProtected: Boolean(isAdminUser),
|
||||||
key: 'customAttributes.searchIndex',
|
key: 'customAttributes.searchIndex',
|
||||||
icon: <SearchOutlined className="side-panel-icons" />,
|
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'),
|
label: i18next.t('label.glossary-term'),
|
||||||
isProtected: Boolean(isAdminUser),
|
isProtected: Boolean(isAdminUser),
|
||||||
key: 'customAttributes.glossaryTerm',
|
key: 'customAttributes.glossaryTerm',
|
||||||
icon: <GlossaryIcon className="side-panel-icons" />,
|
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