RedundancyGroupState: Add method getStateText()

This commit is contained in:
Sukhwinder Dhillon 2024-09-26 13:46:56 +02:00 committed by Johannes Meyer
parent 56180b4ae8
commit 134e45d6f8

View file

@ -62,4 +62,9 @@ class RedundancyGroupState extends Model
{
$relations->belongsTo('redundancy_group', RedundancyGroup::class);
}
public function getStateText(): string
{
return $this->failed ? 'problem' : 'ok';
}
}