'pveQemuBiosSelector': {
change: 'biosChange',
},
+ '#': {
+ afterrender: 'setMachine',
+ },
+ },
+
+ setMachine: function() {
+ let me = this;
+ let vm = this.getViewModel();
+ let ostype = vm.get('current.ostype');
+ if (ostype === 'win11') {
+ me.lookup('machine').setValue('q35');
+ me.lookup('bios').setValue('ovmf');
+ me.lookup('addtpmbox').setValue(true);
+ }
},
},
{
xtype: 'proxmoxKVComboBox',
name: 'machine',
+ reference: 'machine',
value: '__default__',
fieldLabel: gettext('Machine'),
comboItems: [
{
xtype: 'pveQemuBiosSelector',
name: 'bios',
+ reference: 'bios',
value: '__default__',
fieldLabel: 'BIOS',
},