pmg-gui/js/MailProxyTLSPanel.js
Christoph Heiss 45156282eb fix #2437: proxy: Add 'TLS Inbound Domains' panel
This panel can be used to configure sender domains for which TLS will be
enforced my postfix. As this takes the usual transport domain format,
either a FQDN or .FQDN (for matching subdomains) can be specified.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
2023-03-20 19:43:40 +01:00

43 lines
1010 B
JavaScript

Ext.define('PMG.MailProxyTLSPanel', {
extend: 'Ext.panel.Panel',
alias: 'widget.pmgMailProxyTLSPanel',
layout: {
type: 'vbox',
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', {
title: gettext('Settings'),
});
var tlsDestinations = Ext.create('PMG.MailProxyTLSDestinations', {
title: gettext('TLS Destination Policy'),
flex: 1,
});
const tlsInboundDomains = Ext.create('PMG.MailProxyTLSInboundDomains', {
title: gettext('TLS Inbound Domains'),
flex: 1,
});
me.items = [tlsSettings, tlsDestinations, tlsInboundDomains];
me.callParent();
tlsSettings.relayEvents(me, ['activate', 'deactivate', 'destroy']);
tlsDestinations.relayEvents(me, ['activate', 'deactivate', 'destroy']);
tlsInboundDomains.relayEvents(me, ['activate', 'deactivate', 'destroy']);
},
});