mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
20 lines
426 B
JavaScript
20 lines
426 B
JavaScript
'use strict';
|
|
|
|
angular.module('etcd.page')
|
|
.controller('StatsDetailCtrl', function($scope, $modalInstance, _, etcdApiSvc,
|
|
peerName) {
|
|
|
|
etcdApiSvc.fetchPeerDetailStats(peerName)
|
|
.then(function(stats) {
|
|
$scope.stats = stats;
|
|
$scope.objectKeys = _.without(_.keys($scope.stats), '$$hashKey');
|
|
});
|
|
|
|
$scope.identityFn = _.identity;
|
|
|
|
$scope.close = function() {
|
|
$modalInstance.dismiss('close');
|
|
};
|
|
|
|
});
|