From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id CE7B71FF142 for ; Mon, 02 Mar 2026 14:28:56 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B1FB1321D2; Mon, 2 Mar 2026 14:29:31 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Subject: [PATCH manager v3 18/18] ui: qemu: set arch parameter for fetch machine types from api Date: Mon, 2 Mar 2026 14:21:06 +0100 Message-ID: <20260302132913.3169037-19-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260302132913.3169037-1-d.csapak@proxmox.com> References: <20260302132913.3169037-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.035 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: ME2IY577GKI7F7VB5BQPQKU4ICTODFIR X-Message-ID-Hash: ME2IY577GKI7F7VB5BQPQKU4ICTODFIR X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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