Fix temperature - always show if 1+ temp selected

This commit is contained in:
mirivlad 2026-04-26 15:42:42 +08:00
parent 0f519960c3
commit 53ecf8bc9a
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@
<!-- Температуры: один общий график -->
<!-- Температуры: всегда один общий график, если выбрана хоть 1 температура -->
{% set has_temps = false %}
{% for metricName in displayMetrics %}
{% if metricName starts with 'temp_' %}
@ -125,7 +125,7 @@
<canvas id="chart-temperatures" width="100%" height="300"></canvas>
{% else %}
<div class="alert alert-info mb-0">
<i class="fas fa-thermometer-half"></i> Температурные датчики недоступны (возможно виртуальный сервер)
<i class="fas fa-thermometer-half"></i> Температурные датчики не выбраны
</div>
{% endif %}
</div>