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:
raviks789 2024-10-02 14:45:38 +02:00
parent e22bd1bde8
commit 7aecb99023
No known key found for this signature in database

View file

@ -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';
}
}