From 3841e1f1b4ada935e2d712308c9906bd5130bcdd Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sun, 28 Dec 2025 14:10:14 +0100 Subject: [PATCH] fix(system-hub): Add missing scoreLabel variable in renderHeader - ReferenceError: scoreLabel is not defined at line 84 - Added scoreLabel calculation matching renderStatsOverview pattern - Fixes dashboard rendering error in overview.js Error: renderHeader was calling this.renderHealthGauge(score, scoreClass, scoreLabel) but scoreLabel was never defined in that scope. --- .../htdocs/luci-static/resources/view/system-hub/overview.js | 1 + 1 file changed, 1 insertion(+) diff --git a/luci-app-system-hub/htdocs/luci-static/resources/view/system-hub/overview.js b/luci-app-system-hub/htdocs/luci-static/resources/view/system-hub/overview.js index 775b8e45..68c8a5ec 100644 --- a/luci-app-system-hub/htdocs/luci-static/resources/view/system-hub/overview.js +++ b/luci-app-system-hub/htdocs/luci-static/resources/view/system-hub/overview.js @@ -65,6 +65,7 @@ return view.extend({ renderHeader: function() { var score = this.healthData.score || 0; var scoreClass = score >= 80 ? 'excellent' : (score >= 60 ? 'good' : (score >= 40 ? 'warning' : 'critical')); + var scoreLabel = score >= 80 ? 'Excellent' : (score >= 60 ? 'Good' : (score >= 40 ? 'Warning' : 'Critical')); return E('div', { 'class': 'sh-dashboard-header' }, [ E('div', { 'class': 'sh-dashboard-header-content' }, [