mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 19:17:09 +03:00
WebUI : shortcut to disable quick lock and message when process list is disable
This commit is contained in:
parent
dd7911f0b0
commit
04033e1c00
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
@ -20,6 +20,7 @@ var keycodes = {
|
||||
'x' : '88',
|
||||
'ONE': '49',
|
||||
'TWO': '50',
|
||||
'THREE': '51',
|
||||
'h' : '72',
|
||||
'T' : '84',
|
||||
'F' : '70',
|
||||
|
Loading…
Reference in New Issue
Block a user