Version 1.0.1 - Fix de WebMetrics et de l'édit utilisateur
All checks were successful
Neutral/pipeline/head This commit looks good

This commit is contained in:
2024-01-13 19:20:11 +01:00
parent 3484ff9ff7
commit 377c3310e4
6 changed files with 50 additions and 14 deletions

View File

@ -42,8 +42,14 @@ metrics.createWindow(() => {
})
metricsReq.then((ANS_metrics) => {
console.log(ANS_metrics)
if(ANS_metrics != "UNAVAILABLE") {
metricsList.length = 0
metricsList.length = 0
if(ANS_metrics.length == 0) {
metricsList.push(`<div style='font-size: 24px; margin-top: 180px;' class='yellow t-center'>
<p><i class="fa-solid fa-warning"></i> Aucune WebMetrik n'a été ajoutée</p>
</div>`)
}
ANS_metrics.forEach((metric) => {
const metricComponent = new Metric({
properties: metric,