From 77db4ba2ce64b241b11dd6d3e4ec5d1451a56159 Mon Sep 17 00:00:00 2001 From: Jincheng Wan <45655760+Kapian1234@users.noreply.github.com> Date: Fri, 11 Oct 2024 15:35:24 +0800 Subject: [PATCH] [Page Header] Update the title of recent menu (#8529) * Update the title of header recent menu Signed-off-by: Kapian1234 * Changeset file for PR #8529 created/updated --------- Signed-off-by: Kapian1234 Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> --- changelogs/fragments/8529.yml | 2 ++ src/core/public/chrome/ui/header/recent_items.tsx | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/8529.yml diff --git a/changelogs/fragments/8529.yml b/changelogs/fragments/8529.yml new file mode 100644 index 000000000000..4f57759a9e40 --- /dev/null +++ b/changelogs/fragments/8529.yml @@ -0,0 +1,2 @@ +fix: +- Update the title of header recent menu ([#8529](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/8529)) \ No newline at end of file diff --git a/src/core/public/chrome/ui/header/recent_items.tsx b/src/core/public/chrome/ui/header/recent_items.tsx index ee0554ece08d..7efd276b8fa9 100644 --- a/src/core/public/chrome/ui/header/recent_items.tsx +++ b/src/core/public/chrome/ui/header/recent_items.tsx @@ -276,7 +276,11 @@ export const RecentItems = ({ style={{ maxHeight: '35vh', overflow: 'auto' }} > -

Recent

+

+ {i18n.translate('core.header.recent.title', { + defaultMessage: 'Recent assets', + })} +

{selectedRecentsItems.length > 0 ? (