mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-03 01:04:30 +00:00
vlan edit: Move example from default value to tooltip
We usually choose default values that are valid input for the field. interfaceX.1 is rejected by the API. Instead, use a tooltip to demonstrate possible valid inputs for the field. Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
This commit is contained in:
parent
418ec858aa
commit
4ed84281a2
@ -246,6 +246,10 @@ Ext.define('Proxmox.node.NetworkEdit', {
|
||||
value: me.iface,
|
||||
vtype: iface_vtype,
|
||||
allowBlank: false,
|
||||
autoEl: {
|
||||
tag: 'div',
|
||||
'data-qtip': gettext('For example, vmbr0.100, vmbr0, vlan0.100, vlan0'),
|
||||
},
|
||||
listeners: {
|
||||
change: function(f, value) {
|
||||
if (me.isCreate && iface_vtype === 'VlanName') {
|
||||
|
@ -235,7 +235,6 @@ Ext.define('Proxmox.node.NetworkView', {
|
||||
let win = Ext.create('Proxmox.node.NetworkEdit', {
|
||||
nodename: me.nodename,
|
||||
iftype: 'vlan',
|
||||
iface_default: 'interfaceX.1',
|
||||
onlineHelp: 'sysadmin_network_configuration',
|
||||
});
|
||||
win.on('destroy', reload);
|
||||
|
Loading…
Reference in New Issue
Block a user