From 5b1d9ef0f6e1f2ec18da92b36753544780abf53d Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 21 Jan 2018 22:03:15 +0000 Subject: [PATCH] Fix up --- .../Dashboard/IncidentController.php | 4 ++-- .../incidents/updates/edit.blade.php | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Dashboard/IncidentController.php b/app/Http/Controllers/Dashboard/IncidentController.php index 865a8145..cc03457d 100644 --- a/app/Http/Controllers/Dashboard/IncidentController.php +++ b/app/Http/Controllers/Dashboard/IncidentController.php @@ -350,8 +350,8 @@ class IncidentController extends Controller ->withErrors($e->getMessageBag()); } - if ($incident->incident->component) { - $incident->incident->component->update(['status' => Binput::get('component_status')]); + if ($incident->component) { + $incident->component->update(['status' => Binput::get('component_status')]); } return cachet_redirect('dashboard.incidents') diff --git a/resources/views/dashboard/incidents/updates/edit.blade.php b/resources/views/dashboard/incidents/updates/edit.blade.php index 6832e223..5df75656 100644 --- a/resources/views/dashboard/incidents/updates/edit.blade.php +++ b/resources/views/dashboard/incidents/updates/edit.blade.php @@ -45,6 +45,25 @@ {{ trans('cachet.incidents.status')[4] }} + @if($incident->component) +
+
+
{{ $incident->component->name }}
+
+
+ @foreach(trans('cachet.components.status') as $statusID => $status) +
+ +
+ @endforeach +
+
+
+
+ @endif