fix: resolve syntax error in dashboard.js caused by escaped template literals
Build Curio HMS / build-and-deploy (push) Successful in 1m3s
Details
Build Curio HMS / build-and-deploy (push) Successful in 1m3s
Details
This commit is contained in:
parent
0f2f598465
commit
6e2f9b4f94
10
dashboard.js
10
dashboard.js
|
|
@ -611,13 +611,13 @@ function renderAlerts(alerts) {
|
||||||
|
|
||||||
alerts.forEach((alert, index) => {
|
alerts.forEach((alert, index) => {
|
||||||
if (alert.is_dangerous) {
|
if (alert.is_dangerous) {
|
||||||
html += \`
|
html += `
|
||||||
<div style="background-color: #fee2e2; border-left: 4px solid #ef4444; padding: 10px; margin-bottom: 10px; border-radius: 4px;">
|
<div style="background-color: #fee2e2; border-left: 4px solid #ef4444; padding: 10px; margin-bottom: 10px; border-radius: 4px;">
|
||||||
<strong style="color: #991b1b;">Alert #\${index + 1}</strong>
|
<strong style="color: #991b1b;">Alert #${index + 1}</strong>
|
||||||
<p style="margin: 5px 0; color: #7f1d1d;">\${alert.danger_explanation}</p>
|
<p style="margin: 5px 0; color: #7f1d1d;">${alert.danger_explanation}</p>
|
||||||
<p style="margin: 0; font-size: 0.9em; color: #991b1b;"><strong>Action:</strong> \${alert.recommended_action}</p>
|
<p style="margin: 0; font-size: 0.9em; color: #991b1b;"><strong>Action:</strong> ${alert.recommended_action}</p>
|
||||||
</div>
|
</div>
|
||||||
\`;
|
`;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue