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:
Nicolas Hennion
2020-10-10 10:23:49 +02:00
committed by GitHub
5 changed files with 5 additions and 5 deletions

View File

@@ -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%;

View File

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

View File

@@ -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>

View File

Binary file not shown.

View File

Binary file not shown.