mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-15 05:41:42 +00:00
Quarantine: set mailinfo visible only on html preview
We did already hide it when toggling raw/html, but when choosing raw and changing the mail, it was again set to visible. This patch fixes that by always taking 'me.raw' into account. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4935e8fb22
commit
72d8403cb6
@ -79,7 +79,7 @@ Ext.define('PMG.AttachmentQuarantine', {
|
||||
|
||||
me.updatePreview(me.raw || false, rec);
|
||||
me.lookup('attachmentlist').setID(rec);
|
||||
mailinfo.setVisible(!!rec.data);
|
||||
mailinfo.setVisible(!!rec.data && !me.raw);
|
||||
mailinfo.update(rec.data);
|
||||
},
|
||||
|
||||
|
@ -163,7 +163,7 @@ Ext.define('PMG.SpamQuarantine', {
|
||||
me.getViewModel().set('mailid', rec.data ? rec.data.id : '');
|
||||
me.updatePreview(me.raw || false, rec);
|
||||
me.lookupReference('spaminfo').setID(rec);
|
||||
me.lookupReference('mailinfo').setVisible(!!rec.data);
|
||||
me.lookupReference('mailinfo').setVisible(!!rec.data && !me.raw);
|
||||
me.lookupReference('mailinfo').update(rec.data);
|
||||
},
|
||||
|
||||
|
@ -82,7 +82,7 @@ Ext.define('PMG.VirusQuarantine', {
|
||||
mailinfo.setVisible(false);
|
||||
return;
|
||||
}
|
||||
mailinfo.setVisible(true);
|
||||
mailinfo.setVisible(!me.raw);
|
||||
mailinfo.update(selection[0].data);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user