fix(build): Use ngmin. Fix all introduced erros in previous commits.

This commit is contained in:
Ed Rooth
2014-02-05 22:24:13 -08:00
parent 4e21405647
commit f2452a4a3c
13 changed files with 42 additions and 19 deletions

View File

@ -2,7 +2,7 @@
angular.module('etcdControlPanel')
.controller('StatsCtrl', function ($scope, $rootScope, $interval, EtcdV2, statsVega) {
.controller('StatsCtrl', function ($scope, $rootScope, $interval, EtcdV2, statsVega, vg) {
$scope.graphContainer = '#latency';
$scope.graphVisibility = 'etcd-graph-show';
$scope.tableVisibility = 'etcd-table-hide';
@ -30,10 +30,14 @@ angular.module('etcdControlPanel')
});
//sort array so peers don't jump when output
$scope.peers.sort(function(a, b){
if(a.name < b.name) return -1;
if(a.name > b.name) return 1;
if(a.name < b.name) {
return -1;
}
if(a.name > b.name) {
return 1;
}
return 0;
});
});
drawGraph();
});
}