]> git.proxmox.com Git - pmg-gui.git/blob - js/MailProxyTLSPanel.js
dashboard: reduce noise in current kernel version
[pmg-gui.git] / js / MailProxyTLSPanel.js
1 Ext.define('PMG.MailProxyTLSPanel', {
2 extend: 'Ext.panel.Panel',
3 alias: 'widget.pmgMailProxyTLSPanel',
4
5 layout: {
6 type: 'vbox',
7 align: 'stretch',
8 },
9
10 bodyPadding: '0 0 10 0',
11 defaults: {
12 collapsible: true,
13 animCollapse: false,
14 margin: '10 10 0 10',
15 },
16
17 initComponent: function() {
18 var me = this;
19
20 var tlsSettings = Ext.create('PMG.MailProxyTLS', {
21 title: gettext('Settings'),
22 });
23
24 var tlsDestinations = Ext.create('PMG.MailProxyTLSDestinations', {
25 title: gettext('TLS Destination Policy'),
26 flex: 1,
27 });
28
29 const tlsInboundDomains = Ext.create('PMG.MailProxyTLSInboundDomains', {
30 title: gettext('TLS Inbound Domains'),
31 flex: 1,
32 });
33
34 me.items = [tlsSettings, tlsDestinations, tlsInboundDomains];
35
36 me.callParent();
37
38 tlsSettings.relayEvents(me, ['activate', 'deactivate', 'destroy']);
39 tlsDestinations.relayEvents(me, ['activate', 'deactivate', 'destroy']);
40 tlsInboundDomains.relayEvents(me, ['activate', 'deactivate', 'destroy']);
41 },
42 });