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 leaf: true
}, },
{ {
text: gettext('RBL'), text: gettext('Postscreen'),
iconCls: 'fa fa-line-chart', iconCls: 'fa fa-line-chart',
path: 'pmgRBLStatistics', path: 'pmgRBLStatistics',
leaf: true leaf: true

View File

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