From 04033e1c001d14c869f5cf7a062847ecf03b85e0 Mon Sep 17 00:00:00 2001 From: Floran Brutel Date: Tue, 8 Sep 2015 22:41:11 +0200 Subject: [PATCH] WebUI : shortcut to disable quick lock and message when process list is disable --- glances/outputs/static/html/help.html | 4 ++++ glances/outputs/static/html/stats.html | 3 ++- glances/outputs/static/js/stats_controller.js | 5 +++++ glances/outputs/static/js/variables.js | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/glances/outputs/static/html/help.html b/glances/outputs/static/html/help.html index 0f76911e..5919ba16 100644 --- a/glances/outputs/static/html/help.html +++ b/glances/outputs/static/html/help.html @@ -58,6 +58,10 @@
{{help.enable_disable_process_stats}}
+
+
{{help.enable_disable_quick_look}}
+
+
{{help.enable_disable_short_processname}}
diff --git a/glances/outputs/static/html/stats.html b/glances/outputs/static/html/stats.html index c29c602f..03c413ea 100644 --- a/glances/outputs/static/html/stats.html +++ b/glances/outputs/static/html/stats.html @@ -20,7 +20,7 @@
- +
PROCESSES DISABLED (press 'z' to display)
diff --git a/glances/outputs/static/js/stats_controller.js b/glances/outputs/static/js/stats_controller.js index fe99d0d8..71ccdf20 100644 --- a/glances/outputs/static/js/stats_controller.js +++ b/glances/outputs/static/js/stats_controller.js @@ -27,6 +27,7 @@ glancesApp.controller('statsController', function ($scope, $interval, $routePara 'warning_alerts': true, 'warning_critical_alerts': true, 'process_stats': true, + 'quick_look': true, 'top_extended_stats': true, 'docker_stats': true, 'network_io_combination': false, @@ -216,6 +217,10 @@ glancesApp.controller('statsController', function ($scope, $interval, $routePara // F => Show filesystem free space $scope.show_hide('filesystem_free_space'); break; + case $event.shiftKey && $event.keyCode == keycodes.THREE: + // 3 => Enable/disable quick look plugin + $scope.show_hide('quick_look'); + break; } }; }); diff --git a/glances/outputs/static/js/variables.js b/glances/outputs/static/js/variables.js index 6ee1f175..807e6b03 100644 --- a/glances/outputs/static/js/variables.js +++ b/glances/outputs/static/js/variables.js @@ -20,6 +20,7 @@ var keycodes = { 'x' : '88', 'ONE': '49', 'TWO': '50', + 'THREE': '51', 'h' : '72', 'T' : '84', 'F' : '70',