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:
Dominic Jäger 2021-02-08 13:41:35 +01:00 committed by Thomas Lamprecht
parent 418ec858aa
commit 4ed84281a2
2 changed files with 4 additions and 1 deletions

View File

@ -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') {

View File

@ -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);