Skip render of disabled metrics in job view

-Add function to check if metric is disabled
-Relates to  #119
This commit is contained in:
Christoph Kluge
2023-06-16 16:27:30 +02:00
parent 19ad462abf
commit f466312015
3 changed files with 27 additions and 4 deletions

View File

@@ -24,14 +24,13 @@
else
row.push({ _is_placeholder: true, ri, ci })
}
rows.push(row)
}
return rows
}
$: rows = tile(items, itemsPerRow)
$: rows = tile(items.filter(item => item.disabled === false), itemsPerRow)
$: plotWidth = (tableWidth / itemsPerRow) - (padding * itemsPerRow)
</script>