mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-06-04 07:03:50 +00:00

* add js/MailProxyTLSDomains.js for setting per domain TLS policies * add js/MailProxyTLSPanel.js as a wrapper for the current MailProxyTLS.js and MailProxyTLSDomains.js Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
37 lines
820 B
JavaScript
37 lines
820 B
JavaScript
Ext.define('PMG.MailProxyTLSPanel', {
|
|
extend: 'Ext.panel.Panel',
|
|
alias: 'widget.pmgMailProxyTLSPanel',
|
|
|
|
layout: {
|
|
type: 'vbox',
|
|
align: 'stretch'
|
|
},
|
|
|
|
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'
|
|
});
|
|
|
|
me.items = [ tlsSettings, tlsDomains ];
|
|
|
|
me.callParent();
|
|
|
|
tlsSettings.relayEvents(me, ['activate', 'deactivate', 'destroy']);
|
|
tlsDomains.relayEvents(me, ['activate', 'deactivate', 'destroy']);
|
|
}
|
|
});
|