js/RBLStatistics.js - show pregreet rejects, change title to 'Postscreen'

This commit is contained in:
Dietmar Maurer 2017-12-07 08:40:41 +01:00
parent 7162ba0012
commit d6a00b29ca
2 changed files with 8 additions and 10 deletions

View File

@ -157,7 +157,7 @@ Ext.define('PMG.store.NavigationStore', {
leaf: true
},
{
text: gettext('RBL'),
text: gettext('Postscreen'),
iconCls: 'fa fa-line-chart',
path: 'pmgRBLStatistics',
leaf: true

View File

@ -7,25 +7,23 @@ Ext.define('PMG.RBLStatistics', {
bodyPadding: '10 0 10 10',
title: gettext('Statistics') + ': ' + gettext('RBL rejects'),
title: gettext('Statistics') + ': ' + gettext('Postscreen'),
tbar: [ { xtype: 'pmgStatTimeSelector' } ],
items: [
{
title: gettext('RBL rejects'),
title: gettext('Rejects'),
xtype: 'proxmoxRRDChart',
legend: false,
fields: [ 'count' ],
fieldTitles: [
gettext('RBL rejects')
],
fields: [ 'rbl_rejects', 'pregreet_rejects'],
fieldTitles: ['RBL', 'PREGREET'],
store: {
type: 'pmgStatStore',
includeTimeSpan: true,
staturl: "/api2/json/statistics/rblcount",
staturl: "/api2/json/statistics/rejectcount",
fields: [
{ type: 'integer', name: 'count' },
{ type: 'integer', name: 'rbl_rejects' },
{ type: 'integer', name: 'pregreet_rejects' },
{ type: 'date', dateFormat: 'timestamp', name: 'time' }
]
}