EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Highlight index menu item for all actions

Open zorn-v opened this issue 1 year ago • 1 comments

As mentioned in comment,

this way, an 'index' menu item is highlighted for all actions of the same entity

but currently seems a bug present. Closes https://github.com/EasyCorp/EasyAdminBundle/issues/6108

zorn-v avatar Jan 22 '24 02:01 zorn-v

Tests fails seems unrelated and pass for me on local patch-5 branch

zorn-v avatar Jan 22 '24 03:01 zorn-v

As workaround you can copy vendor/easycorp/easyadmin-bundle/src/Menu/MenuItemMatcher.php to something like src/Service/EasyAdmin/MenuItemMatcher.php and edit it. Then something like

    EasyCorp\Bundle\EasyAdminBundle\Contracts\Menu\MenuItemMatcherInterface:
        alias: App\Service\EasyAdmin\MenuItemMatcher

in services section in config/services.yaml

Thanks for this by the way :smile:

zorn-v avatar Mar 11 '24 02:03 zorn-v