Alerting: Add legacy indicator to navbar (#49511) (#49614)

* update id and add translation key

* remove logs

(cherry picked from commit e3a51a4aa8)

Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
Co-authored-by: Peter Holmberg <peter.hlmbrg@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-06-28 10:38:58 +02:00
committed by GitHub
co-authored by Peter Holmberg Peter Holmberg
parent c343547467
commit 5b390de1b6
7 changed files with 19 additions and 4 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"version": "9.0.1"
}
+1 -1
View File
@@ -490,7 +490,7 @@ func (hs *HTTPServer) buildLegacyAlertNavLinks(c *models.ReqContext) []*dtos.Nav
{
Text: "Alerting",
SubTitle: "Alert rules and notifications",
Id: "alerting",
Id: "alerting-legacy",
Icon: "bell",
Url: hs.Cfg.AppSubURL + "/alerting/list",
Children: alertChildNavs,
@@ -26,6 +26,7 @@ const TRANSLATED_MENU_ITEMS: Record<string, MessageDescriptor> = {
explore: defineMessage({ id: 'nav.explore', message: 'Explore' }),
alerting: defineMessage({ id: 'nav.alerting', message: 'Alerting' }),
'alerting-legacy': defineMessage({ id: 'nav.alerting-legacy', message: 'Alerting (legacy)' }),
'alert-list': defineMessage({ id: 'nav.alerting-list', message: 'Alert rules' }),
receivers: defineMessage({ id: 'nav.alerting-receivers', message: 'Contact points' }),
'am-routes': defineMessage({ id: 'nav.alerting-am-routes', message: 'Notification policies' }),
+4
View File
@@ -38,6 +38,10 @@ msgstr "Notification channels"
msgid "nav.alerting-groups"
msgstr "Groups"
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-legacy"
msgstr "Alerting (legacy)"
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-list"
msgstr "Alert rules"
+4
View File
@@ -38,6 +38,10 @@ msgstr ""
msgid "nav.alerting-groups"
msgstr ""
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-legacy"
msgstr ""
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-list"
msgstr ""
+4
View File
@@ -38,6 +38,10 @@ msgstr ""
msgid "nav.alerting-groups"
msgstr ""
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-legacy"
msgstr ""
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-list"
msgstr ""
+4
View File
@@ -38,6 +38,10 @@ msgstr ""
msgid "nav.alerting-groups"
msgstr ""
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-legacy"
msgstr ""
#: public/app/core/components/NavBar/navBarItem-translations.ts
msgid "nav.alerting-list"
msgstr ""