Skip to content
Snippets Groups Projects
Commit 79535a77 authored by Julian's avatar Julian
Browse files

Mark active menu entries as active in vue sidenav template

parent ddd712d0
No related branches found
No related tags found
2 merge requests!1046Draft: Resolve "[3.0] Meta-issue for GraphQL back-end and Vue.js frontend",!1045Introduce Vuetify and GraphQL
Pipeline #74151 failed
......@@ -6,7 +6,7 @@
{% for item in core_menu %}
{% if not item.submenu %}
<v-list-item class="{% if item.selected %} active {% endif %}"
<v-list-item {% if item.selected %} input-value="true" {% endif %}
{% if item.new_tab %} target="_blank" {% endif %} href="{{ item.url }}">
<v-list-item-icon>
{% if item.vuetify_icon %}
......@@ -27,7 +27,7 @@
</v-list-item>
{% endif %}
{% if item.submenu %}
<v-list-group class="bold {% if item.selected %} active {% endif %}"
<v-list-group {% if item.selected %} value="true" {% endif %}
{% if item.new_tab %} target="_blank" {% endif %} href="{{ item.url|default:"#" }}"
{% if item.vuetify_icon %}prepend-icon="{{ item.vuetify_icon }}"{% endif %}
>
......@@ -39,7 +39,7 @@
<span class="new badge sidenav-badge"> {{ badge }}</span>
{% endif %}
{% for menu in item.submenu %}
<v-list-item class="{% if menu.selected %} active {% endif %}" href="{{ menu.url }}">
<v-list-item {% if menu.selected %} input-value="true" {% endif %} href="{{ menu.url }}">
<v-list-item-icon>
{% if menu.vuetify_icon %}
<v-icon>{{ menu.vuetify_icon }}</v-icon>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment