node events notifications
This commit is contained in:
@@ -69,6 +69,11 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
case "info":
|
||||
$scope.nodes[findIndex({id: data.id})].info = data.info;
|
||||
break;
|
||||
|
||||
case "inactive":
|
||||
$scope.nodes[findIndex({id: data.id})].stats = data.stats;
|
||||
toastr['error']("Node went away!", "Node connection was lost!");
|
||||
break;
|
||||
}
|
||||
|
||||
updateStats();
|
||||
|
||||
@@ -32,7 +32,7 @@ app.factory('toastr', function ($rootScope) {
|
||||
toastr.options = {
|
||||
"closeButton": false,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"progressBar": false,
|
||||
"newestOnTop": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"preventDuplicates": false,
|
||||
|
||||
Reference in New Issue
Block a user