add config fallbacks and notes

This commit is contained in:
Christoph Kluge
2025-07-10 14:57:12 +02:00
parent 57b43b7b60
commit b036c3903c
5 changed files with 5 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
/* Svelte 5 Props */
let {
matchedCompareJobs = $bindable(0),
metrics = ccconfig?.plot_list_selectedMetrics,
metrics = getContext("cc-config")?.plot_list_selectedMetrics,
filterBuffer = [],
} = $props();

View File

@@ -44,7 +44,7 @@
/* Const Init */
const clusterCockpitConfig = getContext("cc-config");
const lineWidth = clusterCockpitConfig.plot_general_lineWidth / window.devicePixelRatio;
const lineWidth = clusterCockpitConfig?.plot_general_lineWidth / window.devicePixelRatio || 2;
const cbmode = clusterCockpitConfig?.plot_general_colorblindMode || false;
// UPLOT SERIES INIT //