From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 9B0C11FF09B for ; Mon, 26 Oct 2026 23:05:38 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 39CCB216C0; Mon, 26 Oct 2026 23:04:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datenzelt.de; s=MBO0001; t=1793052277; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A974zWJQyhX27EqTXdc/Ei0H5A1enZPS4Wnlp5MjaGU=; b=nYrwvehQx4BQ++I3tqoNlSPWqVS96/VIkORsKawHRwxtfYrHsHE7HFsk77YLH1ZKKh8HCG QW7Qp9YqC+jtS0JxYMNuW7wtD5YvkX2iqDx9pNVBsNAUjj20x5UvovcLbkR99tjoLsI30s 9YT4I/SZJ2/XIj0ULNzEMs60cILhmSUP6tBBDoeAUlWJ6HQUmhCnRAlVqUVGnT6Ro/+21l CcGJix+BUepO4ca1eqYfM0h2Qaiu0AptLDm5o/4Ia0ELZ7zIRQcgGIIie0SdKS/AQq0HGd hkR7LmRpIILbJe5oJGFXznBrFdNmA5wo3qBwYG7f+zLKErETmv4OagcAjSPD+w== Authentication-Results: outgoing_mbo_mout; dkim=none; spf=pass (outgoing_mbo_mout: domain of timo.meschkat@datenzelt.de designates 2001:67c:2050:b231:465::1 as permitted sender) smtp.mailfrom=timo.meschkat@datenzelt.de From: Timo Meschkat To: pve-devel@lists.proxmox.com Subject: [RFC PATCH manager 2/4] ui: lxc: allow selecting the unit for memory and swap Date: Mon, 26 Oct 2026 23:04:21 +0100 Message-ID: <20261026220423.127776-6-timo.meschkat@datenzelt.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261026220423.127776-1-timo.meschkat@datenzelt.de> References: <20261026220423.127776-1-timo.meschkat@datenzelt.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4jD72Y3GYjzKnBc X-SPAM-LEVEL: Spam detection results: 0 AWL -0.292 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: OEHQJRQKSN525ABF45MZLS6LIVF3XA2C X-Message-ID-Hash: OEHQJRQKSN525ABF45MZLS6LIVF3XA2C X-MailFrom: timo.meschkat@datenzelt.de 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: Like for VMs, memory and swap of containers could only be entered in MiB so far. MiB stays the default. Signed-off-by: Timo Meschkat --- www/manager6/lxc/ResourceEdit.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/www/manager6/lxc/ResourceEdit.js b/www/manager6/lxc/ResourceEdit.js index 5951e122..c0c1a64f 100644 --- a/www/manager6/lxc/ResourceEdit.js +++ b/www/manager6/lxc/ResourceEdit.js @@ -134,22 +134,26 @@ Ext.define('PVE.lxc.MemoryInputPanel', { var items = [ { - xtype: 'proxmoxintegerfield', + xtype: 'pmxSizeUnitField', name: 'memory', + backendUnit: 'MiB', + unitSteps: { MiB: 32 }, minValue: 16, value: '512', - step: 32, - fieldLabel: gettext('Memory') + ' (MiB)', + fieldLabel: gettext('Memory'), + fieldDescription: gettext('Amount of memory (RAM) of the container'), labelWidth: labelWidth, allowBlank: false, }, { - xtype: 'proxmoxintegerfield', + xtype: 'pmxSizeUnitField', name: 'swap', + backendUnit: 'MiB', + unitSteps: { MiB: 32 }, minValue: 0, value: '512', - step: 32, - fieldLabel: gettext('Swap') + ' (MiB)', + fieldLabel: gettext('Swap'), + fieldDescription: gettext('Amount of swap space of the container'), labelWidth: labelWidth, allowBlank: false, }, -- 2.47.3