]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/MailProxyTLSPanel.js
quarantine: use new controller for virus and attachment quarantines
[pmg-gui.git] / js / MailProxyTLSPanel.js
index a7abc78bd5bdf334a44f9c2e6b6c1f3c1dbe7933..82dc3f8a9b7f03d7ae98a61a4a50ff288ac0a731 100644 (file)
@@ -4,33 +4,33 @@ Ext.define('PMG.MailProxyTLSPanel', {
 
     layout: {
        type: 'vbox',
-       align: 'stretch'
+       align: 'stretch',
+    },
+
+    bodyPadding: '0 0 10 0',
+    defaults: {
+       collapsible: true,
+       animCollapse: false,
+       margin: '10 10 0 10',
     },
 
     initComponent: function() {
        var me = this;
 
        var tlsSettings = Ext.create('PMG.MailProxyTLS', {
-           xtype: 'pmgMailProxyTLS',
            title: gettext('Settings'),
-           border: 0,
-           collapsible: true,
-           padding: '0 0 20 0'
        });
 
-       var tlsDomains = Ext.create('PMG.MailProxyTLSDomains', {
-           xtype: 'pmgMailProxyTLSDomains',
-           title: gettext('TLS Domain Policy'),
-           border: 0,
-           collapsible: true,
-           padding: '0 0 20 0'
+       var tlsDestinations = Ext.create('PMG.MailProxyTLSDestinations', {
+           title: gettext('TLS Destination Policy'),
+           flex: 1,
        });
 
-       me.items = [ tlsSettings, tlsDomains ];
+       me.items = [tlsSettings, tlsDestinations];
 
        me.callParent();
 
        tlsSettings.relayEvents(me, ['activate', 'deactivate', 'destroy']);
-       tlsDomains.relayEvents(me, ['activate', 'deactivate', 'destroy']);
-    }
+       tlsDestinations.relayEvents(me, ['activate', 'deactivate', 'destroy']);
+    },
 });