mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-24 17:14:31 +02:00
Skip render of disabled metrics in job view
-Add function to check if metric is disabled -Relates to #119
This commit is contained in:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user