Alerting: Add legacy indicator to navbar (#49511)

* update id and add translation key

* remove logs
pull/49617/head
Peter Holmberg 4 years ago committed by GitHub
parent c149e0ac39
commit e3a51a4aa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/api/index.go
  2. 1
      public/app/core/components/NavBar/Next/NavBarNext.tsx
  3. 1
      public/app/core/components/NavBar/navBarItem-translations.ts
  4. 4
      public/locales/en/messages.po
  5. 4
      public/locales/es/messages.po
  6. 4
      public/locales/fr/messages.po
  7. 4
      public/locales/pseudo-LOCALE/messages.po

@ -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,

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

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

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

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

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

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

Loading…
Cancel
Save