Alerting: Add legacy indicator to navbar (#49511)

* update id and add translation key

* remove logs
This commit is contained in:
Peter Holmberg 2022-05-25 06:30:37 -07:00 committed by GitHub
parent c149e0ac39
commit e3a51a4aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 2 deletions

View File

@ -526,7 +526,7 @@ func (hs *HTTPServer) buildLegacyAlertNavLinks() []*dtos.NavLink {
{
Text: "Alerting",
SubTitle: "Alert rules and notifications",
Id: "alerting",
Id: "alerting-legacy",
Icon: "bell",
Url: hs.Cfg.AppSubURL + "/alerting/list",
Children: alertChildNavs,

View File

@ -70,7 +70,6 @@ export const NavBarNext = React.memo(() => {
if (kiosk !== KioskMode.Off) {
return null;
}
return (
<div className={styles.navWrapper}>
<nav className={cx(styles.sidemenu, 'sidemenu')} data-testid="sidemenu" aria-label="Main menu">

View File

@ -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' }),

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"

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 ""

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 ""

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 ""