diff --git a/glances/outputs/static/html/plugins/system.html b/glances/outputs/static/html/plugins/system.html index 6349117d..257393f0 100644 --- a/glances/outputs/static/html/plugins/system.html +++ b/glances/outputs/static/html/plugins/system.html @@ -1,3 +1,4 @@ +Disconnected from {{ result["system"].hostname }} diff --git a/glances/outputs/static/js/stats_controller.js b/glances/outputs/static/js/stats_controller.js index 471e9168..7690377b 100644 --- a/glances/outputs/static/js/stats_controller.js +++ b/glances/outputs/static/js/stats_controller.js @@ -150,10 +150,13 @@ glancesApp.controller('statsController', function($scope, $http, $interval, $q, $scope.is_mac = response['system'].os_name === 'Darwin'; $scope.is_windows = response['system'].os_name === 'Windows'; + $scope.is_disconnected = false; + $scope.result = response; canceler.resolve() }).error(function(d, status, headers, config) { - console.log('error status:' + status + " - headers = " + headers); + $scope.is_disconnected = true; + canceler.resolve() }); }