|
|
@ -135,6 +135,9 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr) |
|
|
|
else |
|
|
|
else |
|
|
|
toastr['info']("Node "+ $scope.nodes[findIndex({id: data.id})].info.name +" reconnected!", "Node is back!"); |
|
|
|
toastr['info']("Node "+ $scope.nodes[findIndex({id: data.id})].info.name +" reconnected!", "Node is back!"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.$apply(); |
|
|
|
|
|
|
|
makePeerPropagationChart($scope.nodes[findIndex({id: data.id})]); |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case "update": |
|
|
|
case "update": |
|
|
@ -168,6 +171,9 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr) |
|
|
|
case "info": |
|
|
|
case "info": |
|
|
|
$scope.nodes[findIndex({id: data.id})].info = data.info; |
|
|
|
$scope.nodes[findIndex({id: data.id})].info = data.info; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(_.isUndefined($scope.nodes[findIndex({id: data.id})].pinned)) |
|
|
|
|
|
|
|
$scope.nodes[findIndex({id: data.id})].pinned = false; |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case "blockPropagationChart": |
|
|
|
case "blockPropagationChart": |
|
|
@ -294,8 +300,13 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( !_.isUndefined($scope.nodes[index].pinned)) { |
|
|
|
|
|
|
|
data.pinned = $scope.nodes[index].pinned |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
data.pinned = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$scope.nodes[index] = data; |
|
|
|
$scope.nodes[index] = data; |
|
|
|
makePeerPropagationChart($scope.nodes[index]); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|