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:
Thomas Lamprecht 2020-05-06 20:03:19 +02:00
parent 9c164224e5
commit a94b71fba8

View File

@ -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'),
},
], ],
}, },
], ],