Use lang to lookup the status of components and incidents

This commit is contained in:
James Brooks
2014-11-25 09:18:22 +00:00
parent 8736db957c
commit 3ba9db5d24
4 changed files with 22 additions and 12 deletions
+1 -6
View File
@@ -14,12 +14,7 @@
* @return string
*/
public function getHumanStatusAttribute() {
switch ($this->status) {
case 1: return 'Investigating';
case 2: return 'Identified';
case 3: return 'Watching';
case 4: return 'Fixed';
}
return Lang::get('incident.status' . $this->status);
}
/**