]> git.proxmox.com Git - pmg-gui.git/commit
quarantine: refactor spamquarantine controller
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 27 Oct 2022 19:12:57 +0000 (21:12 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Oct 2022 09:30:23 +0000 (11:30 +0200)
commite66c888b86a93829495de1529c4d3f3bda46c209
treece2876962cbbfab14b347360561d5a41f4f9e8b8
parentce7acf1733fbc669491f3a0ae0d5469d98b3c1d0
quarantine: refactor spamquarantine controller

over the time the spam quarantine has gained quite a few nice
usability improvments and features, which would be useful in
the virus and attachment quarantines as well - e.g.:

* multi-mail selection
* keyboard actions
* context menu
* download mail as .eml

this patch splits the controller part into a file of its own, while changing
'var' to 'let' and removing the parts only relevant for the spamquarantine
and adapts the current SpamQuarantine.js to use it.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
js/Makefile
js/SpamQuarantine.js
js/controller/QuarantineController.js [new file with mode: 0644]