WebUI : shortcut to disable quick lock and message when process list is disable

This commit is contained in:
Floran Brutel 2015-09-08 22:41:11 +02:00
parent dd7911f0b0
commit 04033e1c00
4 changed files with 12 additions and 1 deletions

View File

@ -58,6 +58,10 @@
<div class="col-sm-12 col-lg-6">{{help.enable_disable_process_stats}}</div>
<div class="col-sm-12 col-lg-6"></div>
</div>
<div class="row">
<div class="col-sm-12 col-lg-6">{{help.enable_disable_quick_look}}</div>
<div class="col-sm-12 col-lg-6"></div>
</div>
<div class="row">
<div class="col-sm-12 col-lg-6">{{help.enable_disable_short_processname}}</div>
<div class="col-sm-12 col-lg-6"></div>

View File

@ -20,7 +20,7 @@
</div>
</div>
<div class="row">
<div class="hidden-xs hidden-sm hidden-md col-lg-6">
<div class="hidden-xs hidden-sm hidden-md col-lg-6" ng-show="show.quick_look">
<section id="quicklook" class="plugin" ng-include src="'plugins/quicklook.html'"></section>
</div>
<div class="col-sm-6 col-md-4 col-lg-3" ng-show="!show.per_cpu">
@ -67,6 +67,7 @@
</div>
<section id="processlist" class="plugin" ng-include src="'plugins/processlist.html'"></section>
</div>
<div ng-show="!show.process_stats">PROCESSES DISABLED (press 'z' to display)</div>
</div>
</div>
</div>

View File

@ -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;
}
};
});

View File

@ -20,6 +20,7 @@ var keycodes = {
'x' : '88',
'ONE': '49',
'TWO': '50',
'THREE': '51',
'h' : '72',
'T' : '84',
'F' : '70',