fix(obs): quote runtime autoheal action
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
</div>
|
||||
<div class="runtime-actions">
|
||||
{% if h.unhealthy_mark %}<span class="badge bg-warning">30 秒異常標記</span>{% endif %}
|
||||
{% if h.unhealthy_mark or not h.healthy %}<button class="btn btn-sm btn-outline-danger" onclick="triggerAutoHeal({{ h.label|tojson }})"><i class="fas fa-band-aid me-1"></i>啟動自癒</button>{% endif %}
|
||||
{% if h.unhealthy_mark or not h.healthy %}<button class="btn btn-sm btn-outline-danger" onclick='triggerAutoHeal({{ h.label|tojson }})'><i class="fas fa-band-aid me-1"></i>啟動自癒</button>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
@@ -38,6 +38,7 @@ def test_host_health_preserves_ai_runtime_workflows_and_non_raw_wording():
|
||||
"最近 10 筆事件",
|
||||
"最近 10 筆自癒",
|
||||
"啟動自癒",
|
||||
"onclick='triggerAutoHeal({{ h.label|tojson }})'",
|
||||
]:
|
||||
assert marker in template
|
||||
|
||||
|
||||
Reference in New Issue
Block a user