Show effective worker enabled state
This commit is contained in:
@@ -27,10 +27,14 @@
|
||||
<tr class="hover:bg-app-surfaceHover transition-colors">
|
||||
<td class="px-4 py-3 font-mono font-bold text-white">{{ w.name }}</td>
|
||||
<td class="px-4 py-3">
|
||||
{% if w.enabled %}
|
||||
{% if w.effective_enabled %}
|
||||
<span class="badge badge-success px-2 py-0.5 flex items-center gap-1.5 w-max">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-app-success"></span> Включен
|
||||
</span>
|
||||
{% elif w.enabled and w.setting_enabled == false %}
|
||||
<span class="badge badge-warning px-2 py-0.5 flex items-center gap-1.5 w-max">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-app-warning"></span> Выключен настройкой
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="badge badge-error px-2 py-0.5 flex items-center gap-1.5 w-max">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-app-error"></span> Выключен
|
||||
|
||||
Reference in New Issue
Block a user