]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/RBLStatistics.js
fix #2533: quarantine: add overflowHandler to the preview panel
[pmg-gui.git] / js / RBLStatistics.js
index e19c41d7f6a034b8309cd4a055c789f3aa65de30..220c258203002757cf9c5bb7c0b0dca3401680ff 100644 (file)
@@ -3,31 +3,30 @@ Ext.define('PMG.RBLStatistics', {
     xtype: 'pmgRBLStatistics',
 
     scrollable: true,
+    border: false,
 
     bodyPadding: '10 0 10 10',
 
-    title: gettext('Statistics') + ': ' + gettext('RBL rejects'),
+    title: gettext('Statistics') + ': ' + gettext('Postscreen'),
 
-    tbar: [ { xtype: 'pmgStatTimeSelector' } ],
+    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: 'date', dateFormat: 'timestamp', name: 'time' }
-               ]
-           }
-       }
-    ]
+                   { type: 'integer', name: 'rbl_rejects' },
+                   { type: 'integer', name: 'pregreet_rejects' },
+                   { type: 'date', dateFormat: 'timestamp', name: 'time' },
+               ],
+           },
+       },
+    ],
 });