Fix isPage logic in menu (UI)

This commit is contained in:
Théophile Diot 2022-12-14 17:37:52 +01:00
parent 8ee0ec88f9
commit ea4ceae7b3
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 6 additions and 5 deletions

View File

@ -301,13 +301,14 @@
<!-- end default anchor -->
<!-- plugin list -->
{% set isPage = false %} {% set plugins = config["CONFIG"].get_plugins()
%} {% for plugin in plugins %} {% if plugin['page'] %} {% set isPage =
true%} {% endif %} {% endfor %}
{% set isPage = {"value": False} %} {% set plugins =
config["CONFIG"].get_plugins() %} {% for plugin in plugins %} {% if
plugin['page'] %} {% if isPage.update({"value": True}) %} {% endif %} {%
endif %} {% endfor %}
<div>
<ul>
{% if isPage %}
{% if isPage.value == True %}
<li class="w-full mt-4">
<h6
@ -316,7 +317,7 @@
PLUGINS PAGE
</h6>
</li>
{%else %}
{% else %}
<li class="w-full mt-8">
<h6
class="text-center pl-6 pr-8 ml-2 text-xs leading-tight uppercase dark:text-white opacity-60"