mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove the comma from PIDs in the statistics panel.
This commit is contained in:
parent
1fe0d51925
commit
3f83780049
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user