mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-07 22:44:08 +00:00
Refactor search options in SearchClassBase (#14982)
This commit is contained in:
parent
9a4a9df836
commit
7c497825fe
@ -99,7 +99,8 @@ class SearchClassBase {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public getGlobalSearchOptions = () => [
|
public getGlobalSearchOptions() {
|
||||||
|
return [
|
||||||
{ value: '', label: i18n.t('label.all') },
|
{ value: '', label: i18n.t('label.all') },
|
||||||
{ value: SearchIndex.TABLE, label: i18n.t('label.table') },
|
{ value: SearchIndex.TABLE, label: i18n.t('label.table') },
|
||||||
{ value: SearchIndex.TOPIC, label: i18n.t('label.topic') },
|
{ value: SearchIndex.TOPIC, label: i18n.t('label.topic') },
|
||||||
@ -120,6 +121,7 @@ class SearchClassBase {
|
|||||||
{ value: SearchIndex.SEARCH_INDEX, label: i18n.t('label.search-index') },
|
{ value: SearchIndex.SEARCH_INDEX, label: i18n.t('label.search-index') },
|
||||||
{ value: SearchIndex.DATA_PRODUCT, label: i18n.t('label.data-product') },
|
{ value: SearchIndex.DATA_PRODUCT, label: i18n.t('label.data-product') },
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
public getTabsInfo(): Record<ExploreSearchIndex, TabsInfoData> {
|
public getTabsInfo(): Record<ExploreSearchIndex, TabsInfoData> {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user