diff --git a/routes/_components/NavItem.html b/routes/_components/NavItem.html index 395bb46c..d5bde53d 100644 --- a/routes/_components/NavItem.html +++ b/routes/_components/NavItem.html @@ -1,7 +1,7 @@ - + {{#if name === 'notifications'}} @@ -115,6 +115,16 @@ export default { store: () => store, computed: { + ariaLabel: (page, name, label, numberOfNotifications) => { + let res = label + if (page === name) { + res += ' (current page)' + } + if (name === 'notifications') { + res += ` (${numberOfNotifications})` + } + return res + }, numberOfNotifications: ($timelines, $currentInstance, $currentTimeline) => { return $currentTimeline !== 'notifications' && $timelines &&