monitoring: Show problem state badges first

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-27 14:43:01 +02:00
parent b367206837
commit 8de1c6c0f9
1 changed files with 5 additions and 5 deletions

View File

@ -265,11 +265,6 @@ class StateBadges extends AbstractWidget
$badges = new Navigation(); $badges = new Navigation();
$badges->setLayout(Navigation::LAYOUT_TABS); $badges->setLayout(Navigation::LAYOUT_TABS);
$this $this
->createBadge(static::STATE_OK, $badges)
->createBadgeGroup(
array(static::STATE_WARNING, static::STATE_WARNING_HANDLED),
$badges
)
->createBadgeGroup( ->createBadgeGroup(
array(static::STATE_CRITICAL, static::STATE_CRITICAL_HANDLED), array(static::STATE_CRITICAL, static::STATE_CRITICAL_HANDLED),
$badges $badges
@ -278,11 +273,16 @@ class StateBadges extends AbstractWidget
array(static::STATE_DOWN, static::STATE_DOWN_HANDLED), array(static::STATE_DOWN, static::STATE_DOWN_HANDLED),
$badges $badges
) )
->createBadgeGroup(
array(static::STATE_WARNING, static::STATE_WARNING_HANDLED),
$badges
)
->createBadgeGroup( ->createBadgeGroup(
array(static::STATE_UNREACHABLE, static::STATE_UNREACHABLE_HANDLED), array(static::STATE_UNREACHABLE, static::STATE_UNREACHABLE_HANDLED),
$badges $badges
) )
->createBadge(static::STATE_UNKNOWN, $badges) ->createBadge(static::STATE_UNKNOWN, $badges)
->createBadge(static::STATE_OK, $badges)
->createBadge(static::STATE_PENDING, $badges); ->createBadge(static::STATE_PENDING, $badges);
return $badges return $badges
->getRenderer() ->getRenderer()