diff --git a/src/Http/Controllers/DashScheduleController.php b/src/Http/Controllers/DashScheduleController.php index a339edc8..c4f5c82c 100644 --- a/src/Http/Controllers/DashScheduleController.php +++ b/src/Http/Controllers/DashScheduleController.php @@ -211,13 +211,11 @@ class DashScheduleController extends Controller */ public function deleteScheduleAction(Incident $schedule) { - if ($schedule->delete()) { - return Redirect::back()->with('success', sprintf( - '%s %s', - trans('dashboard.notifications.awesome'), - trans('dashboard.schedule.delete.success') - )); - } + segment_track('Dashboard', [ + 'event' => 'Deleted Schedule', + ]); + + $schedule->delete(); return Redirect::back()->with('warning', sprintf( '%s %s',