mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 10:14:46 +00:00
ui: acme add domain: move Domain field below, hide plugin in http mode
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9c164224e5
commit
a94b71fba8
@ -275,7 +275,9 @@ Ext.define('PVE.node.ACMEDomainEdit', {
|
|||||||
change: function(cb, value) {
|
change: function(cb, value) {
|
||||||
let me = this;
|
let me = this;
|
||||||
let view = me.up('pveACMEDomainEdit');
|
let view = me.up('pveACMEDomainEdit');
|
||||||
view.down('field[name=plugin]').setDisabled(value !== 'dns');
|
let pluginField = view.down('field[name=plugin]');
|
||||||
|
pluginField.setDisabled(value !== 'dns');
|
||||||
|
pluginField.setHidden(value !== 'dns');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -283,18 +285,21 @@ Ext.define('PVE.node.ACMEDomainEdit', {
|
|||||||
xtype: 'hidden',
|
xtype: 'hidden',
|
||||||
name: 'alias',
|
name: 'alias',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
xtype: 'proxmoxtextfield',
|
|
||||||
name: 'domain',
|
|
||||||
allowBlank: false,
|
|
||||||
fieldLabel: gettext('Domain'),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
xtype: 'pveACMEPluginSelector',
|
xtype: 'pveACMEPluginSelector',
|
||||||
name: 'plugin',
|
name: 'plugin',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
|
hidden: true,
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
xtype: 'proxmoxtextfield',
|
||||||
|
name: 'domain',
|
||||||
|
allowBlank: false,
|
||||||
|
vtype: 'DnsName',
|
||||||
|
value: '',
|
||||||
|
fieldLabel: gettext('Domain'),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user