disabled node connection notifications

This commit is contained in:
cubedro 2015-08-28 07:34:34 +03:00
parent 8d50891c76
commit b2363d2059

View File

@ -176,10 +176,10 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
case "add": case "add":
var index = findIndex({id: data.id}); var index = findIndex({id: data.id});
if( addNewNode(data) ) // if( addNewNode(data) )
toastr['success']("New node "+ $scope.nodes[findIndex({id: data.id})].info.name +" connected!", "New node!"); // toastr['success']("New node "+ $scope.nodes[findIndex({id: data.id})].info.name +" connected!", "New node!");
else // else
toastr['info']("Node "+ $scope.nodes[index].info.name +" reconnected!", "Node is back!"); // toastr['info']("Node "+ $scope.nodes[index].info.name +" reconnected!", "Node is back!");
break; break;
@ -374,7 +374,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc
if( !_.isUndefined(data.stats) ) if( !_.isUndefined(data.stats) )
$scope.nodes[index].stats = data.stats; $scope.nodes[index].stats = data.stats;
toastr['error']("Node "+ $scope.nodes[index].info.name +" went away!", "Node connection was lost!"); // toastr['error']("Node "+ $scope.nodes[index].info.name +" went away!", "Node connection was lost!");
updateActiveNodes(); updateActiveNodes();
} }