Added status_name to incident and components. Closes #834

This commit is contained in:
James Brooks
2015-08-02 13:46:28 +01:00
parent 7f222677cc
commit 84e1770e51
2 changed files with 4 additions and 2 deletions

View File

@@ -25,8 +25,9 @@ class ComponentPresenter extends AbstractPresenter
public function toArray()
{
return array_merge($this->wrappedObject->toArray(), [
'created_at' => $this->created_at(),
'updated_at' => $this->updated_at(),
'created_at' => $this->created_at(),
'updated_at' => $this->updated_at(),
'status_name' => $this->wrappedObject->humanStatus,
]);
}
}

View File

@@ -163,6 +163,7 @@ class IncidentPresenter extends AbstractPresenter
'scheduled_at' => $this->created_at(),
'created_at' => $this->created_at(),
'updated_at' => $this->updated_at(),
'status_name' => $this->wrappedObject->humanStatus,
]);
}
}