Fix conditional statement in services.html

This commit is contained in:
Théophile Diot 2024-02-22 10:10:20 +01:00
parent 4d23d01ca8
commit 065d6a5025
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -198,7 +198,7 @@
}
] %}
{% if service["SERVER_NAME"]['method'] == "ui" %}
{% set action_buttons = action_buttons.append({"name" : "delete", "label" : "delete service settings", "color" : "red-500"}) %}
{% if action_buttons.append({"name" : "delete", "label" : "delete service settings", "color" : "red-500"}) %}{% endif %}
{% endif %}
{% for button in action_buttons %}
<button data-services-action="{{ button['name'] }}"