From: Dietmar Maurer Date: Thu, 7 Dec 2017 07:40:41 +0000 (+0100) Subject: js/RBLStatistics.js - show pregreet rejects, change title to 'Postscreen' X-Git-Url: https://git.proxmox.com/?p=pmg-gui.git;a=commitdiff_plain;h=d6a00b29ca1e211d2de574bf0da28f6443feb5ba js/RBLStatistics.js - show pregreet rejects, change title to 'Postscreen' --- diff --git a/js/NavigationTree.js b/js/NavigationTree.js index b9550d5..342c715 100644 --- a/js/NavigationTree.js +++ b/js/NavigationTree.js @@ -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 diff --git a/js/RBLStatistics.js b/js/RBLStatistics.js index f6939c5..2be9678 100644 --- a/js/RBLStatistics.js +++ b/js/RBLStatistics.js @@ -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' } ] }