]>
git.proxmox.com Git - pmg-gui.git/blob - js/MailProxyTLSInboundDomains.js
1 Ext
.define('pmg-tls-inbound-domains', {
2 extend
: 'Ext.data.Model',
7 url
: '/api2/json/config/tls-inbound-domains',
15 Ext
.define('PMG.TLSInboundDomainsEdit', {
16 extend
: 'Proxmox.window.Edit',
17 xtype
: 'pmgTLSInboundDomainsEdit',
18 onlineHelp
: 'pmgconfig_mailproxy_tls',
20 subject
: gettext('TLS Inbound domains'),
21 url
: '/api2/extjs/config/tls-inbound-domains',
26 xtype
: 'proxmoxtextfield',
28 fieldLabel
: gettext('Domain'),
33 Ext
.define('PMG.MailProxyTLSInboundDomains', {
34 extend
: 'Ext.grid.GridPanel',
35 alias
: ['widget.pmgMailProxyTLSInboundDomains'],
43 header
: gettext('Domain'),
50 initComponent: function() {
53 const rstore
= Ext
.create('Proxmox.data.UpdateStore', {
54 model
: 'pmg-tls-inbound-domains',
55 storeid
: 'pmg-mailproxy-tls-inbound-domains-store-' + ++Ext
.idSeed
,
58 const store
= Ext
.create('Proxmox.data.DiffStore', { rstore
: rstore
});
59 const reload
= () => rstore
.load();
60 me
.selModel
= Ext
.create('Ext.selection.RowModel', {});
61 Proxmox
.Utils
.monStoreErrors(me
, store
, true);
67 text
: gettext('Create'),
69 Ext
.createWidget('pmgTLSInboundDomainsEdit', {
78 xtype
: 'proxmoxStdRemoveButton',
79 baseurl
: '/config/tls-inbound-domains',
85 activate
: rstore
.startUpdate
,
86 destroy
: rstore
.stopUpdate
,
87 deactivate
: rstore
.stopUpdate
,