From 02488f38aecacd67228fb0d7778c9c74c23bc59d Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Tue, 30 Jul 2024 06:24:21 +0800 Subject: [PATCH] feat: make search relevance visible in first level of all use case Signed-off-by: SuZhou-Joe --- public/plugin_nav.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/public/plugin_nav.tsx b/public/plugin_nav.tsx index 500567e..6a16c04 100644 --- a/public/plugin_nav.tsx +++ b/public/plugin_nav.tsx @@ -3,11 +3,11 @@ * SPDX-License-Identifier: Apache-2.0 */ +import { i18n } from '@osd/i18n'; import { CoreSetup } from '../../../src/core/public'; import { SearchRelevancePluginSetup } from './types'; import { PLUGIN_ID } from '../common'; -import { DEFAULT_NAV_GROUPS, DEFAULT_APP_CATEGORIES, AppCategory } from '../../../src/core/public'; -import { i18n } from "@osd/i18n"; +import { DEFAULT_NAV_GROUPS, AppCategory } from '../../../src/core/public'; const searchRelevance_category: Record = { evaluateSearch: { @@ -19,11 +19,20 @@ const searchRelevance_category: Record) { core.chrome.navGroup.addNavLinksToGroup(DEFAULT_NAV_GROUPS.search, [ { id: PLUGIN_ID, category: searchRelevance_category.evaluateSearch,//change to Evaluate Search + title: titleForSearchRelevance, + showInAllNavGroup: true }, ]); } \ No newline at end of file