added node name to notifications
This commit is contained in:
parent
d74894c99d
commit
76de55f2e5
@ -59,9 +59,9 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
|
||||
case "add":
|
||||
if(addNewNode(data))
|
||||
toastr['success']("New node connected!", "New node!");
|
||||
toastr['success']("New node "+ $scope.nodes[findIndex({id: data.id})].info.name +" connected!", "New node!");
|
||||
else
|
||||
toastr['info']("Node reconnected!", "Node is back!");
|
||||
toastr['info']("Node "+ $scope.nodes[findIndex({id: data.id})].info.name +" reconnected!", "Node is back!");
|
||||
break;
|
||||
|
||||
case "update":
|
||||
@ -74,7 +74,7 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
|
||||
|
||||
case "inactive":
|
||||
$scope.nodes[findIndex({id: data.id})].stats = data.stats;
|
||||
toastr['error']("Node went away!", "Node connection was lost!");
|
||||
toastr['error']("Node "+ $scope.nodes[findIndex({id: data.id})].info.name +" went away!", "Node connection was lost!");
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user