]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/AttachmentGrid.js
quarantines: add attachment grid to spam and virus quarantine
[pmg-gui.git] / js / AttachmentGrid.js
index 7e630dee2bcf15268781604536bcd7b6688c7f13..8943f0939466442cff7bd9a57ed7376f5902ccb4 100644 (file)
@@ -1,6 +1,9 @@
 Ext.define('PMG.grid.AttachmentGrid', {
     extend: 'Ext.grid.GridPanel',
     xtype: 'pmgAttachmentGrid',
+    mixins: ['Proxmox.Mixin.CBind'],
+
+    showDownloads: true,
 
     store: {
        autoDestroy: true,
@@ -48,6 +51,9 @@ Ext.define('PMG.grid.AttachmentGrid', {
        },
        {
            header: gettext('Download'),
+           cbind: {
+               hidden: '{!showDownloads}',
+           },
            renderer: function(value, mD, rec) {
                var me = this;
                let url = `/api2/json/quarantine/download?mailid=${me.mailid}&attachmentid=${rec.data.id}`;