fix(build): Use ngmin. Fix all introduced erros in previous commits.
This commit is contained in:
@ -104,7 +104,7 @@ angular.module('etcdControlPanel')
|
||||
$scope.back();
|
||||
$scope.writingNew = false;
|
||||
}, function (response) {
|
||||
$scope.showSaveError(data.message);
|
||||
$scope.showSaveError(response.message);
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('etcdControlPanel')
|
||||
.controller('RootCtrl', function($rootScope, prefixUrl) {
|
||||
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user