Bug 1234621 - Misc. perfherder cleanup

This commit is contained in:
William Lachance 2015-12-22 15:43:00 -05:00
Родитель 259b939baf
Коммит 8e4cd5d851
2 изменённых файлов: 5 добавлений и 13 удалений

Просмотреть файл

@ -83,14 +83,13 @@ perf.controller(
perf.controller('AlertsCtrl', [
'$state', '$stateParams', '$scope', '$rootScope', '$http', '$q', '$modal',
'thUrl', 'ThRepositoryModel', 'ThOptionCollectionModel', 'ThResultSetModel',
'thDefaultRepo', 'PhFramework', 'PhSeries', 'PhAlerts', 'phTimeRanges',
'thUrl', 'ThOptionCollectionModel', 'ThResultSetModel',
'PhFramework', 'PhSeries', 'PhAlerts', 'phTimeRanges',
'phDefaultTimeRangeValue', 'phAlertResolutionMap', 'dateFilter',
'thDateFormat',
function AlertsCtrl($state, $stateParams, $scope, $rootScope, $http, $q,
$modal,
thUrl, ThRepositoryModel, ThOptionCollectionModel,
ThResultSetModel, thDefaultRepo, PhFramework,
$modal, thUrl, ThOptionCollectionModel,
ThResultSetModel, PhFramework,
PhSeries, PhAlerts, phTimeRanges,
phDefaultTimeRangeValue, phAlertResolutionMap,
dateFilter, thDateFormat) {
@ -103,7 +102,6 @@ perf.controller('AlertsCtrl', [
};
$scope.phAlertResolutionMap = phAlertResolutionMap;
// these methods
$scope.changeAlertSummaryStatus = function(alertSummary, status) {
PhAlerts.changeAlertSummaryStatus(
alertSummary.id, status).then(function() {
@ -325,12 +323,6 @@ perf.controller('AlertsCtrl', [
function(frameworks) {
$scope.frameworks = frameworks.data;
}),
ThRepositoryModel.get_list().then(function(response) {
$scope.projects = response.data;
$scope.selectedProject = _.findWhere($scope.projects, {
name: thDefaultRepo ? thDefaultRepo : thDefaultRepo
});
}),
ThOptionCollectionModel.get_map().then(
function(optionCollectionMap) {
$scope.optionCollectionMap = optionCollectionMap;

Просмотреть файл

@ -22,7 +22,7 @@
</div>
&nbsp;
<div class="form-group">
<input id="filter" type="text" class="form-control" ng-model="filterOptions.filter" placeholder="e.g. linux tp5o" ng-change="updateFilters()"/>
<input id="filter" type="text" class="form-control" ng-model="filterOptions.filter" placeholder="filter text e.g. linux tp5o" ng-change="updateFilters()"/>
</div>
<div class="checkbox" tooltip="Non-trivial changes (1.5%+)">
<label>