mirror of
https://github.com/nicolargo/glances.git
synced 2026-05-19 12:10:02 -04:00
Merge pull request #1742 from nicolargo/webui-amp-disable-number-matching-processes
WebUI : Hide the process count of amp if regex is not defined
This commit is contained in:
@@ -148,7 +148,7 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
#amps-plugin .process-result {
|
||||
#amps .process-result {
|
||||
max-width: 300px;
|
||||
overflow: hidden;
|
||||
white-space: pre-wrap;
|
||||
@@ -156,7 +156,7 @@ body {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#gpu-plugin .gpu-name {
|
||||
#gpu .gpu-name {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function GlancesPluginAmpsController($scope, GlancesStats, favico
|
||||
}, this);
|
||||
};
|
||||
|
||||
vm.getDescriptionDecoration = function (process) {
|
||||
vm.getNameDecoration = function (process) {
|
||||
var count = process.count;
|
||||
var countMin = process.countmin;
|
||||
var countMax = process.countmax;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<section id="amps" class="plugin">
|
||||
<div class="table">
|
||||
<div class="table-row" ng-repeat="process in vm.processes">
|
||||
<div class="table-cell text-left" ng-class="vm.getDescriptionDecoration(process)">{{ process.name }}</div>
|
||||
<div class="table-cell text-left">{{ process.count }}</div>
|
||||
<div class="table-cell text-left" ng-class="vm.getNameDecoration(process)">{{ process.name }}</div>
|
||||
<div class="table-cell text-left" ng-if="process.regex">{{ process.count }}</div>
|
||||
<div class="table-cell text-left process-result" ng-bind-html="process.result|nl2br"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
BIN
glances/outputs/static/public/glances.js
vendored
BIN
glances/outputs/static/public/glances.js
vendored
Binary file not shown.
BIN
glances/outputs/static/public/glances.map.js
vendored
BIN
glances/outputs/static/public/glances.map.js
vendored
Binary file not shown.
Reference in New Issue
Block a user