]> git.proxmox.com Git - pmg-gui.git/commitdiff
attachement grid: set configs used on all use-sites as defaults
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 07:10:26 +0000 (08:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 08:46:31 +0000 (09:46 +0100)
avoid overly repetition, we can still override them if we get a use
site that really requires different values here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/AttachmentGrid.js
js/AttachmentQuarantine.js
js/SpamQuarantine.js
js/VirusQuarantine.js

index 8943f0939466442cff7bd9a57ed7376f5902ccb4..6ef54cc7ed729140bdc69b72bf7abe5bfab50d68 100644 (file)
@@ -5,6 +5,10 @@ Ext.define('PMG.grid.AttachmentGrid', {
 
     showDownloads: true,
 
+    minHeight: 50,
+    maxHeight: 250,
+    scrollable: true,
+
     store: {
        autoDestroy: true,
        fields: ['name', 'content-type', 'size'],
index 29cbb27ae7b4ca350b51599b39929db3f64d357b..4e2b03634944062aec45480069ce4231ce5839a9 100644 (file)
@@ -137,9 +137,6 @@ Ext.define('PMG.AttachmentQuarantine', {
                },
                {
                    xtype: 'pmgAttachmentGrid',
-                   minHeight: 50,
-                   maxHeight: 250,
-                   scrollable: true,
                    reference: 'attachmentlist',
                },
                {
index f14f9f2f094c38b9f6e01ddb4fac9b797f591913..0012bd4c579499075753f6d6df32dd494a7aa0dc 100644 (file)
@@ -281,9 +281,6 @@ Ext.define('PMG.SpamQuarantine', {
                },
                {
                    xtype: 'pmgAttachmentGrid',
-                   minHeight: 50,
-                   maxHeight: 250,
-                   scrollable: true,
                    reference: 'attachmentlist',
                    showDownloads: false,
                    border: false,
index bd5699d76216ddbb79357225147941c6f6577428..69331af7c21c0c28230e1cbaa0f252e06ecf9206 100644 (file)
@@ -158,9 +158,6 @@ Ext.define('PMG.VirusQuarantine', {
                },
                {
                    xtype: 'pmgAttachmentGrid',
-                   minHeight: 50,
-                   maxHeight: 250,
-                   scrollable: true,
                    reference: 'attachmentlist',
                    showDownloads: false,
                    border: false,