mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-04 14:39: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,
|
value: me.iface,
|
||||||
vtype: iface_vtype,
|
vtype: iface_vtype,
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
|
autoEl: {
|
||||||
|
tag: 'div',
|
||||||
|
'data-qtip': gettext('For example, vmbr0.100, vmbr0, vlan0.100, vlan0'),
|
||||||
|
},
|
||||||
listeners: {
|
listeners: {
|
||||||
change: function(f, value) {
|
change: function(f, value) {
|
||||||
if (me.isCreate && iface_vtype === 'VlanName') {
|
if (me.isCreate && iface_vtype === 'VlanName') {
|
||||||
|
@ -235,7 +235,6 @@ Ext.define('Proxmox.node.NetworkView', {
|
|||||||
let win = Ext.create('Proxmox.node.NetworkEdit', {
|
let win = Ext.create('Proxmox.node.NetworkEdit', {
|
||||||
nodename: me.nodename,
|
nodename: me.nodename,
|
||||||
iftype: 'vlan',
|
iftype: 'vlan',
|
||||||
iface_default: 'interfaceX.1',
|
|
||||||
onlineHelp: 'sysadmin_network_configuration',
|
onlineHelp: 'sysadmin_network_configuration',
|
||||||
});
|
});
|
||||||
win.on('destroy', reload);
|
win.on('destroy', reload);
|
||||||
|
Loading…
Reference in New Issue
Block a user