rpitv / glimpse

Monorepo for the RPI TV Glimpse project
MIT License
3 stars 1 forks source link

"More" dropdown will be visible even if all the buttons in it are hidden #24

Open robere2 opened 2 years ago

robere2 commented 2 years ago

Some buttons on the navbar are hidden based on the users current permissions. The checks for this take place after it is determined whether the "More" dropdown should be shown. This could result in the "More" dropdown appearing but being empty if the user doesn't have permission to view any of the items within it.

Currently, this is just a theoretical. I'm not aware of any screen size where this could actually happen, due to the order that the buttons are currently in. If the order is ever changed, however, then this could change.