[Web UI] does not display process with no result

This commit is contained in:
Nicolas Hart 2016-05-03 22:31:16 +02:00
parent 3ad608e325
commit c93093d39f

View File

@ -3,7 +3,14 @@ glancesApp.service('GlancesPluginAmps', function() {
this.processes = []; this.processes = [];
this.setData = function(data, views) { this.setData = function(data, views) {
this.processes = data[_pluginName]; var processes = data[_pluginName];
this.processes = [];
angular.forEach(processes, function(process, key) {
if (process.result !== null) {
this.processes.push(process);
}
}, this);
}; };
this.getDescriptionDecoration = function(process) { this.getDescriptionDecoration = function(process) {