mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-28 19:31:55 +00:00
ui: vm/machine: allow blank to avoid invalidity and show Latest as empty text
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
aeb61a525b
commit
1fe7de1a5e
@ -65,8 +65,8 @@ Ext.define('PVE.qemu.MachineInputPanel', {
|
||||
name: 'version',
|
||||
reference: 'version',
|
||||
fieldLabel: gettext('Version'),
|
||||
emptyText: gettext('Latest'),
|
||||
value: 'latest',
|
||||
allowBlank: false,
|
||||
editable: false,
|
||||
valueField: 'id',
|
||||
displayField: 'version',
|
||||
@ -81,7 +81,7 @@ Ext.define('PVE.qemu.MachineInputPanel', {
|
||||
listeners: {
|
||||
load: function(records) {
|
||||
if (!this.isWindows) {
|
||||
this.insert(0, { id: 'latest', type: 'any', version: 'latest' });
|
||||
this.insert(0, { id: 'latest', type: 'any', version: gettext('Latest') });
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user