Use lang to lookup the status of components and incidents
This commit is contained in:
@@ -14,12 +14,7 @@
|
||||
* @return string
|
||||
*/
|
||||
public function getHumanStatusAttribute() {
|
||||
switch ($this->status) {
|
||||
case 1: return 'Operational';
|
||||
case 2: return 'Performance Issues';
|
||||
case 3: return 'Partial Outage';
|
||||
case 4: return 'Major Outage';
|
||||
}
|
||||
return Lang::get('component.status.' . $this->status);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user