mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-01 11:55:19 +00:00

no functional change intended Signed-off-by: Stefan Reiter <s.reiter@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
39 lines
751 B
JavaScript
39 lines
751 B
JavaScript
Ext.define('PVE.qemu.MachineInputPanel', {
|
|
extend: 'Proxmox.panel.InputPanel',
|
|
xtype: 'pveMachineInputPanel',
|
|
|
|
items: [{
|
|
name: 'machine',
|
|
xtype: 'proxmoxKVComboBox',
|
|
fieldLabel: gettext('Machine'),
|
|
comboItems: [
|
|
['__default__', PVE.Utils.render_qemu_machine('')],
|
|
['q35', 'q35'],
|
|
],
|
|
}],
|
|
});
|
|
|
|
Ext.define('PVE.qemu.MachineEdit', {
|
|
extend: 'Proxmox.window.Edit',
|
|
|
|
subject: gettext('Machine'),
|
|
|
|
items: [{
|
|
xtype: 'pveMachineInputPanel',
|
|
}],
|
|
|
|
initComponent: function() {
|
|
let me = this;
|
|
|
|
me.callParent();
|
|
|
|
me.load({
|
|
success: function(response) {
|
|
let vmconfig = response.result.data;
|
|
let machine = vmconfig.machine || '__default__';
|
|
me.setValues({ machine: machine });
|
|
},
|
|
});
|
|
},
|
|
});
|