DJBarnes / django-adminlte2-pdq

A Django app that takes all of the work out of making a beautiful and functional web application pretty darn quickly (PDQ) using the AdminLTE2 theme.
MIT License
6 stars 0 forks source link

Documentation or Bug: Menu section that is only a title with no nodes does not render. #3

Closed DJBarnes closed 1 year ago

DJBarnes commented 2 years ago

If making a section in the menu that does not define any nodes, but does contain a title, the title will not be rendered out. Either the documentation needs to be updated to be clear that nothing will render without a title, or this is a bug that needs to be fixed so that you can render out just a title.

DJBarnes commented 1 year ago

I can't seem to replicate this issue. I created a top level entry with only a 'text' key and no nodes, and it rendered out just fine.

I then tried a nested one that was under a top level set of nodes. If the only key provided was 'text', it would raise an exception because the 'route' param was not included. (As it should). Including the 'route' key fixes as intended.

If instead, it is not meant to be a node and instead meant to be a sub menu, the 'nodes' key is required. If there was a 'nodes' key provided with an empty list, it rendered the 'text' value just fine.

So, if there is an issue, I don't know how to replicate it. Closing for now, can re-open if someone can provide a concrete example of this failing.