[pmg-devel] [PATCH pmg-gui 1/1] spam quarantine: add columsn for positive/negative spam score matches
Dominik Csapak
d.csapak at proxmox.com
Mon Sep 22 10:05:01 CEST 2025
The api returns the sum of spam matches individually for positive and
negative ones, so add two new columns that show them. They each take up
50 pixels, so increase the width of the list by 100 pixel so we have the
same space for the other columns here.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
js/SpamQuarantine.js | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/js/SpamQuarantine.js b/js/SpamQuarantine.js
index 1844022..93c411d 100644
--- a/js/SpamQuarantine.js
+++ b/js/SpamQuarantine.js
@@ -153,7 +153,7 @@ Ext.define('PMG.SpamQuarantine', {
selModel: 'checkboxmodel',
reference: 'list',
region: 'west',
- width: 500,
+ width: 600,
split: true,
collapsible: false,
store: {
@@ -181,6 +181,20 @@ Ext.define('PMG.SpamQuarantine', {
align: 'right',
width: 70,
},
+ {
+ header: '+',
+ dataIndex: 'score-positive',
+ align: 'right',
+ renderer: (value) => (value ?? 0).toFixed(2),
+ width: 50,
+ },
+ {
+ header: '-',
+ dataIndex: 'score-negative',
+ align: 'right',
+ renderer: (value) => (value ?? 0).toFixed(2),
+ width: 50,
+ },
{
header: gettext('Size') + ' (KB)',
renderer: (v) => Ext.Number.toFixed(v / 1024, 0),
--
2.47.3
More information about the pmg-devel
mailing list