mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
RedundancyGroupState: change state texts to 'unreachable' or 'reachable'
The state text is only necessary to add css rules for state-balls and not be used to show the state text of the group.
This commit is contained in:
parent
e22bd1bde8
commit
7aecb99023
1 changed files with 2 additions and 1 deletions
|
|
@ -65,6 +65,7 @@ class RedundancyGroupState extends Model
|
|||
|
||||
public function getStateText(): string
|
||||
{
|
||||
return $this->failed ? 'problem' : 'ok';
|
||||
// The method should only be called to fake state balls and not to show the group's state
|
||||
return $this->failed ? 'unreachable' : 'reachable';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue