etcd/mod/dashboard/app/page/stats/stats-detail-ctrl.js
2014-04-14 12:16:18 -07:00

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');
};
});