fix: make menu entries accessible
This commit is contained in:
@@ -12,6 +12,9 @@ export default class extends Controller {
|
|||||||
|
|
||||||
expandedValueChanged(expanded) {
|
expandedValueChanged(expanded) {
|
||||||
this.submenuTarget.classList.toggle(this.closedClass, false === expanded)
|
this.submenuTarget.classList.toggle(this.closedClass, false === expanded)
|
||||||
|
if (false === this.hasButtonTarget) {
|
||||||
|
return
|
||||||
|
}
|
||||||
this.buttonTarget.setAttribute('aria-expanded', expanded)
|
this.buttonTarget.setAttribute('aria-expanded', expanded)
|
||||||
if (false === this.hasIconTarget) {
|
if (false === this.hasIconTarget) {
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -41,15 +41,17 @@ class AdminMenuBuilder extends AbstractMenuBuilder
|
|||||||
'icon' => 'mail',
|
'icon' => 'mail',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
$documentMenu = $menu->addChild('Dokumentenübersicht', [
|
$documentMenu = $menu->addChild('Dokumente', [
|
||||||
'route' => 'app_administrative_document_index',
|
|
||||||
'linkAttributes' => [
|
|
||||||
'title' => 'Dokumentenübersicht',
|
|
||||||
],
|
|
||||||
'extras' => [
|
'extras' => [
|
||||||
'icon' => 'document',
|
'icon' => 'document',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
$documentMenu->addChild('Übersicht', [
|
||||||
|
'route' => 'app_administrative_document_index',
|
||||||
|
'linkAttributes' => [
|
||||||
|
'title' => 'Übersicht',
|
||||||
|
],
|
||||||
|
]);
|
||||||
$documentMenu->addChild('akzeptierte Honorarnoten', [
|
$documentMenu->addChild('akzeptierte Honorarnoten', [
|
||||||
'route' => 'app_administrative_document_accepted',
|
'route' => 'app_administrative_document_accepted',
|
||||||
'routeParameters' => [
|
'routeParameters' => [
|
||||||
@@ -226,7 +228,6 @@ class AdminMenuBuilder extends AbstractMenuBuilder
|
|||||||
'title' => 'Administrative Benutzer:innen',
|
'title' => 'Administrative Benutzer:innen',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$menu->addChild('Logs', [
|
$menu->addChild('Logs', [
|
||||||
'route' => 'app_admin_log_index',
|
'route' => 'app_admin_log_index',
|
||||||
'linkAttributes' => [
|
'linkAttributes' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user