Skip to content

Commit

Permalink
native flask menu method to check for visible children
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Nov 13, 2024
1 parent bb19ad4 commit 55ed6c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oarepo_ui/templates/oarepo_ui/header_login.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{# Desktop Quick-create ("plus") menu #}
{%- set plus_menu_items = current_menu.submenu('plus').children %}
{%- set visible_items = plus_menu_items | selectattr("visible") | list %}
{%- if plus_menu_items and visible_items %}
{%- if plus_menu_items and current_menu.submenu('plus').has_visible_child() %}
<div
id="quick-create-dropdown"
class="ui dropdown pr-15 computer only create_dropdown"
Expand Down

0 comments on commit 55ed6c9

Please sign in to comment.