]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/SpamQuarantine.js
configuration: options: adapt to new advanced statistic filter default
[pmg-gui.git] / js / SpamQuarantine.js
index c86ce79ac45e4d2a840ebc396a43cdb26c1fc592..a390dcf7d13fbf67ae106fe1901bab52cc312084 100644 (file)
@@ -51,7 +51,7 @@ Ext.define('PMG.SpamQuarantineController', {
        spam.setDisabled(true);
        spam.setPressed(false);
        me.lookupReference('spaminfo').setVisible(false);
-       me.callParent(selection);
+       me.callParent(arguments);
     },
 
     toggleSpamInfo: function(btn) {
@@ -143,7 +143,6 @@ Ext.define('PMG.SpamQuarantine', {
            title: gettext('Spam Quarantine'),
            xtype: 'pmgQuarantineList',
            selModel: 'checkboxmodel',
-           emailSelection: true,
            reference: 'list',
            region: 'west',
            width: 500,
@@ -204,6 +203,12 @@ Ext.define('PMG.SpamQuarantine', {
                {
                    xtype: 'toolbar',
                    dock: 'top',
+                   overflowHandler: 'scroller',
+                   style: {
+                       // docked items have set the bottom with to 0px with '! important'
+                       // but we still want one here, so we can remove the borders of the grids
+                       'border-bottom-width': '1px ! important',
+                   },
                    items: [
                        {
                            xtype: 'button',
@@ -219,6 +224,17 @@ Ext.define('PMG.SpamQuarantine', {
                            enableToggle: true,
                            iconCls: 'fa fa-bullhorn',
                        },
+                       {
+                           xtype: 'tbseparator',
+                           reference: 'themeCheckSep',
+                       },
+                       {
+                           xtype: 'proxmoxcheckbox',
+                           reference: 'themeCheck',
+                           checked: true,
+                           boxLabel: gettext('Dark-mode filter'),
+                           iconCls: 'fa fa-paint-brush',
+                       },
                        '->',
                        {
                            xtype: 'button',
@@ -262,13 +278,21 @@ Ext.define('PMG.SpamQuarantine', {
                },
                {
                    xtype: 'pmgSpamInfoGrid',
-                   border: false,
                    reference: 'spaminfo',
+                   border: false,
                },
                {
                    xtype: 'pmgMailInfo',
                    hidden: true,
                    reference: 'mailinfo',
+                   border: false,
+               },
+               {
+                   xtype: 'pmgAttachmentGrid',
+                   reference: 'attachmentlist',
+                   showDownloads: false,
+                   border: false,
+                   dock: 'bottom',
                },
            ],
        },