pve-manager/www/manager6/sdn/ipams/PVEIpamEdit.js
Thomas Lamprecht 4966ba74f3 ui: sdn: eslint auto fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-04-26 15:44:57 +02:00

35 lines
560 B
JavaScript

Ext.define('PVE.sdn.ipams.PVEIpamInputPanel', {
extend: 'PVE.panel.SDNIpamBase',
onlineHelp: 'pvesdn_ipam_plugin_pveipam',
onGetValues: function(values) {
var me = this;
if (me.isCreate) {
values.type = me.type;
} else {
delete values.ipam;
}
return values;
},
initComponent: function() {
var me = this;
me.items = [
{
xtype: me.isCreate ? 'textfield' : 'displayfield',
name: 'ipam',
maxLength: 10,
value: me.zone || '',
fieldLabel: 'ID',
allowBlank: false,
},
];
me.callParent();
},
});