]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/controller/QuarantineController.js
quarantines: add attachment grid to spam and virus quarantine
[pmg-gui.git] / js / controller / QuarantineController.js
index d47af6ab1e0ca1e06fd779dc27081845b514c1eb..afc04be38f751cb70c577268d7e67c8963de9bf6 100644 (file)
@@ -41,6 +41,11 @@ Ext.define('PMG.controller.QuarantineController', {
        me.updatePreview(me.raw, rec);
     },
 
+    toggleAttachments: function(button) {
+       var grid = this.lookup('attachmentlist');
+       grid?.setVisible(!grid?.isVisible());
+    },
+
     btnHandler: function(button, e) {
        let me = this;
        let action = button.reference;
@@ -162,6 +167,9 @@ Ext.define('PMG.controller.QuarantineController', {
        'button[reference=raw]': {
            click: 'toggleRaw',
        },
+       'button[reference=attachments]': {
+           click: 'toggleAttachments',
+       },
        'pmgQuarantineList': {
            selectionChange: 'onSelectMail',
            itemkeypress: 'keyPress',