From: Dominik Csapak <d.csapak@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui 1/1] spam quarantine: add columsn for positive/negative spam score matches
Date: Mon, 22 Sep 2025 10:05:01 +0200 [thread overview]
Message-ID: <20250922080509.737332-3-d.csapak@proxmox.com> (raw)
In-Reply-To: <20250922080509.737332-1-d.csapak@proxmox.com>
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@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
_______________________________________________
pmg-devel mailing list
pmg-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pmg-devel
prev parent reply other threads:[~2025-09-22 8:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-22 8:04 [pmg-devel] [PATCH pmg-api/pmg-gui 0/2] spam quarantine: show split positive/negative scores in list Dominik Csapak
2025-09-22 8:05 ` [pmg-devel] [PATCH pmg-api 1/1] api: quarantine: include positive and negative spam score sum " Dominik Csapak
2025-09-22 8:05 ` Dominik Csapak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250922080509.737332-3-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox