From 0aa1124b76caa59450116db35ea9d35a8204de00 Mon Sep 17 00:00:00 2001 From: "Qingyang(Abby) Hu" Date: Thu, 24 Aug 2023 09:31:49 -0700 Subject: [PATCH] eliminate duplicate dashboard breadcrumb text ID (#4805) Signed-off-by: abbyhu2000 --- .../public/application/utils/breadcrumbs.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/dashboard/public/application/utils/breadcrumbs.ts b/src/plugins/dashboard/public/application/utils/breadcrumbs.ts index fa9cef188e57..5be797fde558 100644 --- a/src/plugins/dashboard/public/application/utils/breadcrumbs.ts +++ b/src/plugins/dashboard/public/application/utils/breadcrumbs.ts @@ -23,7 +23,7 @@ export const setBreadcrumbsForNewDashboard = (viewMode: ViewMode, isDirty: boole return [ ...getLandingBreadcrumbs(), { - text: i18n.translate('dashboard.strings.dashboardViewTitle', { + text: i18n.translate('dashboard.strings.newDashboardViewTitle', { defaultMessage: 'New Dashboard', }), }, @@ -33,7 +33,7 @@ export const setBreadcrumbsForNewDashboard = (viewMode: ViewMode, isDirty: boole return [ ...getLandingBreadcrumbs(), { - text: i18n.translate('dashboard.strings.dashboardEditTitle', { + text: i18n.translate('dashboard.strings.newDashboardEditTitleUnsaved', { defaultMessage: 'Editing New Dashboard (unsaved)', }), }, @@ -42,7 +42,7 @@ export const setBreadcrumbsForNewDashboard = (viewMode: ViewMode, isDirty: boole return [ ...getLandingBreadcrumbs(), { - text: i18n.translate('dashboard.strings.dashboardEditTitle', { + text: i18n.translate('dashboard.strings.newDashboardEditTitle', { defaultMessage: 'Editing New Dashboard', }), }, @@ -60,7 +60,7 @@ export const setBreadcrumbsForExistingDashboard = ( return [ ...getLandingBreadcrumbs(), { - text: i18n.translate('dashboard.strings.dashboardViewTitle', { + text: i18n.translate('dashboard.strings.existingDashboardViewTitle', { defaultMessage: '{title}', values: { title }, }), @@ -71,7 +71,7 @@ export const setBreadcrumbsForExistingDashboard = ( return [ ...getLandingBreadcrumbs(), { - text: i18n.translate('dashboard.strings.dashboardEditTitle', { + text: i18n.translate('dashboard.strings.existingDashboardEditTitleUnsaved', { defaultMessage: 'Editing {title} (unsaved)', values: { title }, }), @@ -81,7 +81,7 @@ export const setBreadcrumbsForExistingDashboard = ( return [ ...getLandingBreadcrumbs(), { - text: i18n.translate('dashboard.strings.dashboardEditTitle', { + text: i18n.translate('dashboard.strings.existingDashboardEditTitle', { defaultMessage: 'Editing {title}', values: { title }, }),