Merge pull request #161 from cubedro/develop

removed toastr until bug fix
pull/5/head
Marian OANCΞA 10 years ago
commit ddfce101b4
  1. 2
      dist/js/netstats.min.js
  2. 2
      dist/js/netstats.min.js.map
  3. 6
      src/js/controllers.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -145,8 +145,8 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr)
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;
@ -250,7 +250,7 @@ netStatsApp.controller('StatsCtrl', function($scope, $filter, socket, _, toastr)
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!");
} }
break; break;

Loading…
Cancel
Save