Improved human_status of ComponentPresenter
This commit is contained in:
@@ -187,9 +187,7 @@ class IncidentPresenter extends AbstractPresenter
|
||||
*/
|
||||
public function human_status()
|
||||
{
|
||||
$statuses = trans('cachet.incidents.status');
|
||||
|
||||
return $statuses[$this->wrappedObject->status];
|
||||
return trans('cachet.incidents.status.'.$this->wrappedObject->status);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user