This commit is contained in:
phecho
2015-11-20 17:02:11 +08:00
parent 031d89ea4a
commit 32b66df5f0
8 changed files with 41 additions and 12 deletions

View File

@@ -194,7 +194,7 @@ class ComponentController extends Controller
$component->tags()->sync($componentTags);
return Redirect::route('dashboard.components.add')
return Redirect::route('dashboard.components.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.add.success')));
}
@@ -209,7 +209,8 @@ class ComponentController extends Controller
{
$this->dispatch(new RemoveComponentCommand($component));
return Redirect::route('dashboard.components.index');
return Redirect::route('dashboard.components.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
}
/**
@@ -223,7 +224,8 @@ class ComponentController extends Controller
{
$this->dispatch(new RemoveComponentGroupCommand($group));
return Redirect::route('dashboard.components.index');
return Redirect::route('dashboard.components.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.delete.success')));
}
/**
@@ -270,7 +272,7 @@ class ComponentController extends Controller
->withErrors($e->getMessageBag());
}
return Redirect::route('dashboard.components.groups.add')
return Redirect::route('dashboard.components.groups')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.components.groups.add.success')));
}

View File

@@ -129,7 +129,7 @@ class IncidentController extends Controller
->withErrors($e->getMessageBag());
}
return Redirect::route('dashboard.incidents.add')
return Redirect::route('dashboard.incidents.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.add.success')));
}
@@ -169,7 +169,8 @@ class IncidentController extends Controller
{
$template->delete();
return Redirect::route('dashboard.incidents.index');
return Redirect::route('dashboard.templates.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.templates.delete.success')));
}
/**
@@ -188,7 +189,7 @@ class IncidentController extends Controller
->withErrors($e->getMessageBag());
}
return Redirect::route('dashboard.templates.add')
return Redirect::route('dashboard.templates.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.templates.add.success')));
}
@@ -203,7 +204,8 @@ class IncidentController extends Controller
{
$this->dispatch(new RemoveIncidentCommand($incident));
return Redirect::route('dashboard.incidents.index');
return Redirect::route('dashboard.incidents.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.delete.success')));
}
/**

View File

@@ -80,7 +80,7 @@ class MetricController extends Controller
->withErrors($e->getMessageBag());
}
return Redirect::route('dashboard.metrics.add')
return Redirect::route('dashboard.metrics.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.metrics.add.success')));
}
@@ -106,7 +106,8 @@ class MetricController extends Controller
{
$this->dispatch(new RemoveMetricCommand($metric));
return Redirect::route('dashboard.metrics.index');
return Redirect::route('dashboard.metrics.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.metrics.delete.success')));
}
/**

View File

@@ -110,7 +110,7 @@ class ScheduleController extends Controller
->withErrors($e->getMessageBag());
}
return Redirect::route('dashboard.schedule.add')
return Redirect::route('dashboard.schedule.index')
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.schedule.add.success')));
}
@@ -182,6 +182,6 @@ class ScheduleController extends Controller
$schedule->delete();
return Redirect::route('dashboard.schedule.index')
->withWarning(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.schedule.delete.success')));
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.schedule.delete.success')));
}
}