The api gained an 'arch' parameter when getting the list of available machine types, use that if we set the architecture on the machine edit panel.
Signed-off-by: Dominik Csapak <[email protected]> --- www/manager6/qemu/MachineEdit.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/www/manager6/qemu/MachineEdit.js b/www/manager6/qemu/MachineEdit.js index d72b2f69..54293181 100644 --- a/www/manager6/qemu/MachineEdit.js +++ b/www/manager6/qemu/MachineEdit.js @@ -57,6 +57,15 @@ Ext.define('PVE.qemu.MachineInputPanel', { store.addFilter((val) => val.data.id === 'latest' || val.data.type === type); store.isWindows = me.getView().isWindows; }, + + setArch: function (arch) { + let me = this; + let store = me.lookup('version').getStore(); + store.getProxy().setExtraParams({ + arch, + }); + store.reload(); + }, }, onGetValues: function (values) { @@ -111,6 +120,7 @@ Ext.define('PVE.qemu.MachineInputPanel', { this.callParent(arguments); this.getController().setVersionFilter(values.machine); + this.getController().setArch(values.arch); }, items: [ -- 2.47.3
