disabled node connection notifications

pull/5/head
cubedro 9 years ago
parent 8d50891c76
commit b2363d2059
  1. 10
      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();
}

Loading…
Cancel
Save