Removed tracking

This commit is contained in:
Graham Campbell
2015-08-01 17:07:06 +01:00
parent 2425682381
commit fb127fb861
36 changed files with 2 additions and 607 deletions

View File

@@ -113,11 +113,6 @@ class ScheduleController extends AbstractController
$incident = Incident::create($scheduleData);
if (!$incident->isValid()) {
segment_track('Dashboard', [
'event' => 'Created Scheduled Maintenance',
'success' => false,
]);
return Redirect::back()->withInput(Binput::all())
->with('success', sprintf(
'%s %s',
@@ -127,11 +122,6 @@ class ScheduleController extends AbstractController
->with('errors', $incident->getErrors());
}
segment_track('Dashboard', [
'event' => 'Created Scheduled Maintenance',
'success' => true,
]);
$successMsg = sprintf(
'%s %s',
trans('dashboard.notifications.awesome'),
@@ -197,11 +187,6 @@ class ScheduleController extends AbstractController
$schedule->update($scheduleData);
if (!$schedule->isValid()) {
segment_track('Dashboard', [
'event' => 'Edited Schedule',
'success' => false,
]);
return Redirect::back()->withInput(Binput::all())
->with('title', sprintf(
'%s %s',
@@ -211,11 +196,6 @@ class ScheduleController extends AbstractController
->with('errors', $schedule->getErrors());
}
segment_track('Dashboard', [
'event' => 'Edited Schedule',
'success' => true,
]);
$successMsg = sprintf(
'%s %s',
trans('dashboard.notifications.awesome'),
@@ -234,10 +214,6 @@ class ScheduleController extends AbstractController
*/
public function deleteScheduleAction(Incident $schedule)
{
segment_track('Dashboard', [
'event' => 'Deleted Schedule',
]);
$schedule->delete();
return Redirect::back()->with('warning', sprintf(