diff --git a/public/js/controllers.js b/public/js/controllers.js index b74d506..c920924 100644 --- a/public/js/controllers.js +++ b/public/js/controllers.js @@ -52,20 +52,14 @@ function StatsCtrl($scope, $filter, socket, _, toastr) { case "init": $scope.nodes = data; - if($scope.nodes.length > 0) - { - toastr['success']("Got nodes list", "Got nodes!"); - } + if($scope.nodes.length > 0) toastr['success']("Got nodes list", "Got nodes!"); break; case "add": if(addNewNode(data)) - { toastr['success']("New node connected!", "New node!"); - } else { + else toastr['info']("Node reconnected!", "Node is back!"); - } - break; case "update": diff --git a/public/js/services.js b/public/js/services.js index dbde145..9c8ba25 100644 --- a/public/js/services.js +++ b/public/js/services.js @@ -32,6 +32,7 @@ app.factory('toastr', function ($rootScope) { toastr.options = { "closeButton": false, "debug": false, + "progressBar": true, "newestOnTop": true, "progressBar": false, "positionClass": "toast-top-right",