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.
This commit is contained in:
parent
16386d4de2
commit
3841e1f1b4
@ -65,6 +65,7 @@ return view.extend({
|
|||||||
renderHeader: function() {
|
renderHeader: function() {
|
||||||
var score = this.healthData.score || 0;
|
var score = this.healthData.score || 0;
|
||||||
var scoreClass = score >= 80 ? 'excellent' : (score >= 60 ? 'good' : (score >= 40 ? 'warning' : 'critical'));
|
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' }, [
|
return E('div', { 'class': 'sh-dashboard-header' }, [
|
||||||
E('div', { 'class': 'sh-dashboard-header-content' }, [
|
E('div', { 'class': 'sh-dashboard-header-content' }, [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user