mirror of
https://github.com/nicolargo/glances.git
synced 2026-03-14 20:07:23 -04:00
[Web UI] add ports plugin shortcut
This commit is contained in:
@@ -66,3 +66,7 @@
|
||||
<div class="col-sm-12 col-lg-6">{{help.enable_disable_short_processname}}</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_ports}}</div>
|
||||
<div class="col-sm-12 col-lg-6"></div>
|
||||
</div>
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<div class="col-sm-6 sidebar" ng-show="!arguments.disable_left_sidebar">
|
||||
<div class="table">
|
||||
<section id="network" class="plugin table-row-group" ng-show="!arguments.disable_network" ng-include src="'plugins/network.html'"></section>
|
||||
<section id="ports" class="plugin table-row-group" ng-include src="'plugins/ports.html'"></section>
|
||||
<section id="ports" class="plugin table-row-group" ng-show="!arguments.disable_ports" ng-include src="'plugins/ports.html'"></section>
|
||||
<section id="diskio" class="plugin table-row-group" ng-show="!arguments.disable_diskio && statsDiskio.disks.length > 0" ng-include src="'plugins/diskio.html'"></section>
|
||||
<section id="fs" class="plugin table-row-group" ng-show="!arguments.disable_fs" ng-include src="'plugins/fs.html'"></section>
|
||||
<section id="folders" class="plugin table-row-group" ng-show="!arguments.disable_fs && statsFolders.folders.length > 0" ng-include src="'plugins/folders.html'"></section>
|
||||
|
||||
@@ -178,6 +178,10 @@ glancesApp.controller('statsController', function ($scope, $rootScope, $interval
|
||||
// I => Show/hide IP module
|
||||
$scope.arguments.disable_ip = !$scope.arguments.disable_ip;
|
||||
break;
|
||||
case $event.shiftKey && $event.keyCode == keycodes.p:
|
||||
// I => Enable/disable ports module
|
||||
$scope.arguments.disable_ports = !$scope.arguments.disable_ports;
|
||||
break;
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user