Improve metric threshold

This commit is contained in:
James Brooks
2017-03-18 11:15:43 +00:00
parent f7435748ec
commit 4607d90401
6 changed files with 45 additions and 6 deletions

View File

@@ -45,7 +45,8 @@ class MetricController extends Controller
public function showAddMetric()
{
return View::make('dashboard.metrics.add')
->withPageTitle(trans('dashboard.metrics.add.title').' - '.trans('dashboard.dashboard'));
->withPageTitle(trans('dashboard.metrics.add.title').' - '.trans('dashboard.dashboard'))
->withAcceptableThresholds(Metric::ACCEPTABLE_THRESHOLDS);
}
/**
@@ -131,7 +132,8 @@ class MetricController extends Controller
{
return View::make('dashboard.metrics.edit')
->withPageTitle(trans('dashboard.metrics.edit.title').' - '.trans('dashboard.dashboard'))
->withMetric($metric);
->withMetric($metric)
->withAcceptableThresholds(Metric::ACCEPTABLE_THRESHOLDS);
}
/**