spam.setDisabled(true);
spam.setPressed(false);
me.lookupReference('spaminfo').setVisible(false);
- me.callParent(selection);
- },
-
- onSelectMail: function() {
- let me = this;
- let list = me.lookupReference('list');
- let selection = list.selModel.getSelection();
- if (selection.length <= 1) {
- let rec = selection[0] || {};
- me.lookupReference('spaminfo').setID(rec);
- }
- me.callParent();
+ me.callParent(arguments);
},
-
toggleSpamInfo: function(btn) {
var grid = this.lookupReference('spaminfo');
grid.setVisible(!grid.isVisible());
click: 'toggleSpamInfo',
},
'pmgQuarantineList': {
- selectionChange: 'onSelectMail',
itemkeypress: 'keyPress',
rowcontextmenu: 'openContextMenu',
},
title: gettext('Spam Quarantine'),
xtype: 'pmgQuarantineList',
selModel: 'checkboxmodel',
- emailSelection: true,
reference: 'list',
region: 'west',
width: 500,
{
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',
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',
},
{
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',
},
],
},