fix: make protected setting again changeable through admin ui (#5245)

This commit is contained in:
Lukas 2023-07-14 00:57:19 +02:00 committed by GitHub
parent f4f39e274f
commit 4a46e0321f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,9 +22,7 @@
{{ setting.description }}
</td>
<td>
{% if setting.protected %}
<span style='color: red;'>***</span> <span class='fas fa-lock icon-red'></span>
{% elif setting.is_bool %}
{% if setting.is_bool %}
{% include "InvenTree/settings/setting_boolean.html" %}
{% else %}
<div id='setting-{{ setting.pk }}'>
@ -32,7 +30,9 @@
{% if setting.value == '' %}
<em style='color: #855;'>{% trans "No value set" %}</em>
{% else %}
{% if setting.is_choice %}
{% if setting.protected %}
<strong><span style='color: red;'>***</span> <span class='fas fa-lock icon-red'></span></strong>
{% elif setting.is_choice %}
<strong>{{ setting.as_choice }}</strong>
{% else %}
<strong>{{ setting.value }}</strong>