mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-04 14:22:23 -04:00
RedundancyGroupState: Add method getStateText()
This commit is contained in:
parent
56180b4ae8
commit
134e45d6f8
1 changed files with 5 additions and 0 deletions
|
|
@ -62,4 +62,9 @@ class RedundancyGroupState extends Model
|
|||
{
|
||||
$relations->belongsTo('redundancy_group', RedundancyGroup::class);
|
||||
}
|
||||
|
||||
public function getStateText(): string
|
||||
{
|
||||
return $this->failed ? 'problem' : 'ok';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue