diff --git a/src/js/controllers.js b/src/js/controllers.js index 5a3c48a..2e2219c 100644 --- a/src/js/controllers.js +++ b/src/js/controllers.js @@ -176,10 +176,10 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc case "add": var index = findIndex({id: data.id}); - if( addNewNode(data) ) - toastr['success']("New node "+ $scope.nodes[findIndex({id: data.id})].info.name +" connected!", "New node!"); - else - toastr['info']("Node "+ $scope.nodes[index].info.name +" reconnected!", "Node is back!"); + // if( addNewNode(data) ) + // toastr['success']("New node "+ $scope.nodes[findIndex({id: data.id})].info.name +" connected!", "New node!"); + // else + // toastr['info']("Node "+ $scope.nodes[index].info.name +" reconnected!", "Node is back!"); break; @@ -374,7 +374,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, $localStorage, soc if( !_.isUndefined(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(); }