Skip to content

Commit

Permalink
monitoring: Add CSS class state-badges to the StateBadges widget
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 27, 2015
1 parent 8ead6c7 commit 2267d61
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -11,6 +11,8 @@

class StateBadges extends AbstractWidget
{
const CSS_CLASS = 'state-badges';

const STATE_CRITICAL = 'state-critical';

const STATE_CRITICAL_HANDLED = 'state-critical-handled';
Expand Down Expand Up @@ -128,6 +130,6 @@ public function render()
)
->createBadge(static::STATE_UNKNOWN, $badges)
->createBadge(static::STATE_PENDING, $badges);
return $badges->getRenderer()->render();
return $badges->getRenderer()->setCssClass(static::CSS_CLASS)->render();
}
}

0 comments on commit 2267d61

Please sign in to comment.