rpitv / glimpse-ui

Official website for RPI TV
https://rpi.tv
MIT License
2 stars 0 forks source link

Improve navigation header generation to use permissions #31

Closed robere2 closed 2 years ago

robere2 commented 2 years ago

The navigation menu at the moment has a hard-coded structure based on screen size. As a result, not only is it harder to maintain and has duplicate code, but also means that if we want to show/hide various buttons based on user permissions, the menu will appear different.

This should probably be solved by first calculating the list of visible menu options, and then dynamically calculating which should be displayed and where based on size.

robere2 commented 2 years ago

Fixed with #35