]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/AttachmentQuarantine.js
mail-proxy-relaying: add help to Default Relay
[pmg-gui.git] / js / AttachmentQuarantine.js
index 5e0c2ea7d644d558c7a59c8e0257675539bafdbe..52bda4c6668e3da0df93be59e8a2aa4d47bb52c7 100644 (file)
@@ -43,7 +43,7 @@ Ext.define('PMG.AttachmentQuarantine', {
            xtype: 'pmgQuarantineList',
            emptyText: gettext('No data in database'),
            selModel: 'checkboxmodel',
-           emailSelection: false,
+           quarantineType: 'attachment',
            reference: 'list',
            region: 'west',
            width: 500,
@@ -97,6 +97,7 @@ Ext.define('PMG.AttachmentQuarantine', {
            dockedItems: [
                {
                    xtype: 'toolbar',
+                   overflowHandler: 'scroller',
                    dock: 'top',
                    items: [
                        {
@@ -106,6 +107,17 @@ Ext.define('PMG.AttachmentQuarantine', {
                            enableToggle: true,
                            iconCls: 'fa fa-file-code-o',
                        },
+                       {
+                           xtype: 'tbseparator',
+                           reference: 'themeCheckSep',
+                       },
+                       {
+                           xtype: 'proxmoxcheckbox',
+                           reference: 'themeCheck',
+                           checked: true,
+                           boxLabel: gettext('Dark-mode filter'),
+                           iconCls: 'fa fa-paint-brush',
+                       },
                        '->',
                        {
                            xtype: 'button',
@@ -134,18 +146,17 @@ Ext.define('PMG.AttachmentQuarantine', {
                        },
                    ],
                },
-               {
-                   xtype: 'pmgAttachmentGrid',
-                   minHeight: 50,
-                   maxHeight: 250,
-                   scrollable: true,
-                   reference: 'attachmentlist',
-               },
                {
                    xtype: 'pmgMailInfo',
                    hidden: true,
                    reference: 'mailinfo',
                },
+               {
+                   xtype: 'pmgAttachmentGrid',
+                   reference: 'attachmentlist',
+                   dock: 'bottom',
+                   collapsible: false,
+               },
            ],
        },
     ],