mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-30 02:00:41 +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',
|
name: 'version',
|
||||||
reference: 'version',
|
reference: 'version',
|
||||||
fieldLabel: gettext('Version'),
|
fieldLabel: gettext('Version'),
|
||||||
|
emptyText: gettext('Latest'),
|
||||||
value: 'latest',
|
value: 'latest',
|
||||||
allowBlank: false,
|
|
||||||
editable: false,
|
editable: false,
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
displayField: 'version',
|
displayField: 'version',
|
||||||
@ -81,7 +81,7 @@ Ext.define('PVE.qemu.MachineInputPanel', {
|
|||||||
listeners: {
|
listeners: {
|
||||||
load: function(records) {
|
load: function(records) {
|
||||||
if (!this.isWindows) {
|
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