mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
Alerting: Add legacy indicator to navbar (#49511)
* update id and add translation key * remove logs
This commit is contained in:
parent
c149e0ac39
commit
e3a51a4aa8
@ -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…
Reference in New Issue
Block a user