Remove the comma from PIDs in the statistics panel.

This commit is contained in:
Murtuza Zabuawala 2017-07-17 10:18:31 +01:00 committed by Dave Page
parent 1fe0d51925
commit 3f83780049

View File

@ -324,14 +324,23 @@ define([
this.columns = []; this.columns = [];
for (var idx in columns) { for (var idx in columns) {
var rawColumn = columns[idx], var rawColumn = columns[idx],
col = { cell_type = typeCellMapper[rawColumn['type_code']] || 'string';
// Don't show PID comma separated
if(rawColumn['name'] == 'PID') {
cell_type = cell_type.extend({
orderSeparator: ''
});
}
var col = {
editable: false, editable: false,
name: rawColumn['name'], name: rawColumn['name'],
cell: typeCellMapper[rawColumn['type_code']] || 'string' cell: cell_type
}; };
if (_.indexOf(prettifyFields, rawColumn['name']) != -1) { if (_.indexOf(prettifyFields, rawColumn['name']) != -1) {
col['formatter'] = SizeFormatter col['formatter'] = SizeFormatter
} }
this.columns.push(col); this.columns.push(col);
} }