Skip to content

Commit

Permalink
eliminate duplicate dashboard breadcrumb text ID (#4805)
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <[email protected]>
  • Loading branch information
abbyhu2000 authored Aug 24, 2023
1 parent 8e1ec99 commit 0aa1124
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/plugins/dashboard/public/application/utils/breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}),
},
Expand All @@ -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)',
}),
},
Expand All @@ -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',
}),
},
Expand All @@ -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 },
}),
Expand All @@ -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 },
}),
Expand All @@ -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 },
}),
Expand Down

0 comments on commit 0aa1124

Please sign in to comment.