mirror of
https://github.com/grafana/grafana.git
synced 2026-08-09 12:48:18 -05:00
Revert "I18n: Add translations for the Alerting Watchers nav entry" (#130050)
Revert "I18n: Add translations for the Alerting Watchers nav entry (#130040)"
This reverts commit d7836fe139.
This commit is contained in:
+1
-1
@@ -964,7 +964,7 @@ playwright.storybook.config.ts @grafana/grafana-frontend-platform
|
||||
/public/app/core/utils/isOnPrem.ts @grafana/grafana-frontend-navigation
|
||||
/public/app/core/utils/isRecord.ts @grafana/dashboards-squad
|
||||
/public/app/core/utils/kbn* @grafana/grafana-frontend-platform
|
||||
/public/app/core/utils/navBarItem-translations* @grafana/grafana-frontend-navigation
|
||||
/public/app/core/utils/navBarItem-translations.ts @grafana/grafana-frontend-navigation
|
||||
/public/app/core/utils/object* @grafana/grafana-frontend-platform
|
||||
/public/app/core/utils/query* @grafana/grafana-datasources-core-services
|
||||
/public/app/core/utils/richHistory* @grafana/datapro
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
import { getNavSubTitle, getNavTitle } from './navBarItem-translations';
|
||||
|
||||
describe('navBarItem-translations', () => {
|
||||
describe('getNavTitle', () => {
|
||||
it('returns the title for the Alerting Watchers nav item', () => {
|
||||
expect(getNavTitle('standalone-plugin-page-assistant-watchers')).toBe('Watchers');
|
||||
});
|
||||
|
||||
it('returns undefined for an unknown nav ID', () => {
|
||||
expect(getNavTitle('not-a-real-nav-id')).toBeUndefined();
|
||||
});
|
||||
|
||||
it('returns undefined when no nav ID is given', () => {
|
||||
expect(getNavTitle(undefined)).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('getNavSubTitle', () => {
|
||||
it('returns the subtitle for the Alerting Watchers nav item', () => {
|
||||
expect(getNavSubTitle('standalone-plugin-page-assistant-watchers')).toBe(
|
||||
'Let the Assistant watch your data and notify you when something needs attention'
|
||||
);
|
||||
});
|
||||
|
||||
it('returns undefined for an unknown nav ID', () => {
|
||||
expect(getNavSubTitle('not-a-real-nav-id')).toBeUndefined();
|
||||
});
|
||||
|
||||
it('returns undefined when no nav ID is given', () => {
|
||||
expect(getNavSubTitle(undefined)).toBeUndefined();
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -77,8 +77,6 @@ export function getNavTitle(navId: string | undefined) {
|
||||
return t('nav.alerting-list.title', 'Alert rules');
|
||||
case 'alert-list-legacy':
|
||||
return t('nav.alert-list-legacy.title', 'Alert rules');
|
||||
case 'standalone-plugin-page-assistant-watchers':
|
||||
return t('nav.alerting-watchers.title', 'Watchers');
|
||||
case 'receivers':
|
||||
return t('nav.alerting-receivers.title', 'Contact points');
|
||||
case 'am-routes':
|
||||
@@ -252,11 +250,6 @@ export function getNavSubTitle(navId: string | undefined) {
|
||||
);
|
||||
case 'alert-list':
|
||||
return t('nav.alerting-list.subtitle', 'Rules that determine whether an alert will fire');
|
||||
case 'standalone-plugin-page-assistant-watchers':
|
||||
return t(
|
||||
'nav.alerting-watchers.subtitle',
|
||||
'Let the Assistant watch your data and notify you when something needs attention'
|
||||
);
|
||||
case 'receivers':
|
||||
return t(
|
||||
'nav.alerting-receivers.subtitle',
|
||||
|
||||
@@ -12208,10 +12208,6 @@
|
||||
"subtitle": "Upgrade your existing legacy alerts and notification channels to the new Grafana Alerting",
|
||||
"title": "Alerting upgrade"
|
||||
},
|
||||
"alerting-watchers": {
|
||||
"subtitle": "Let the Assistant watch your data and notify you when something needs attention",
|
||||
"title": "Watchers"
|
||||
},
|
||||
"alerts-and-incidents": {
|
||||
"subtitle": "Alerting and incident management apps",
|
||||
"title": "Alerts & IRM"
|
||||
|
||||
Reference in New Issue
Block a user