check method "ui" or "manual" to delete plugin

This commit is contained in:
Jordan Blasenhauer 2024-05-22 13:24:01 +02:00
parent e469529369
commit c4ddefbc6b

View file

@ -106,7 +106,7 @@
</svg>
</a>
{% endif %}
{% if plugin['type'] == "external" %}
{% if plugin['type'] == "external" and plugin['method'] in ('ui', 'manual') %}
<button {% if is_readonly%}disabled{% endif %} data-{{attribute_name}}-action="delete"
name="{{ plugin['id'] }}"
aria-label="delete plugin"