web/vtctld: Fix shard dashboard for new topo structures.

This commit is contained in:
Anthony Yeh 2015-08-11 11:22:47 -07:00
Родитель f5071cf98a
Коммит beb2733458
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -33,7 +33,7 @@ app.controller('ShardCtrl', function($scope, $routeParams, $timeout, $route,
if (tablet.streamHealth.target.tablet_type)
return vtTabletTypes[tablet.streamHealth.target.tablet_type];
}
return tablet.Type;
return vtTabletTypes[tablet.type];
};
$scope.tabletHealthError = function(tablet) {
@ -89,7 +89,7 @@ app.controller('ShardCtrl', function($scope, $routeParams, $timeout, $route,
// Annotate result with some extra stuff.
tablet.links = vtconfig.tabletLinks(tablet);
});
tablet.Alias = tabletAlias;
tablet.alias = tabletAlias;
tabletData.push(tablet);
});
@ -114,9 +114,9 @@ app.controller('ShardCtrl', function($scope, $routeParams, $timeout, $route,
function refreshStreamHealth() {
if (selectedCell) {
selectedCell.tablets.forEach(function (tablet) {
if (tablet.Alias) {
if (tablet.alias) {
// Get latest streaming health result.
tabletinfo.get({tablet: tablet.Alias.cell+'-'+tablet.Alias.uid, info: 'health'}, function(health) {
tabletinfo.get({tablet: tablet.alias.cell+'-'+tablet.alias.uid, info: 'health'}, function(health) {
tablet.streamHealth = health;
});
}