From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 3153E1FF0DD for ; Thu, 22 Oct 2026 18:44:12 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 278C32165A; Thu, 22 Oct 2026 18:44:11 +0200 (CEST) From: Jonas Theisen To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox-backup v4 4/9] ui: prune job: align prune edit window to other "Enable" checkboxes Date: Thu, 22 Oct 2026 18:43:19 +0200 Message-ID: <20261022164343.353831-5-j.theisen@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022164343.353831-1-j.theisen@proxmox.com> References: <20261022164343.353831-1-j.theisen@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1792687445435 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.119 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: SKRNTZOVGJ4DBHJC5CAXLGXI37W4Y7CT X-Message-ID-Hash: SKRNTZOVGJ4DBHJC5CAXLGXI37W4Y7CT X-MailFrom: j.theisen@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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Align the already existing "Enabled" checkbox in the prune job edit window to the "Enable" checkboxes of the other job types: rename it to "Enable", as is more common throughout the UI, add the same tooltip, and disable the schedule field while the checkbox is unchecked. Signed-off-by: Jonas Theisen --- www/window/PruneJobEdit.js | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/www/window/PruneJobEdit.js b/www/window/PruneJobEdit.js index a3dafde21..63f736570 100644 --- a/www/window/PruneJobEdit.js +++ b/www/window/PruneJobEdit.js @@ -43,6 +43,21 @@ Ext.define('PBS.window.PruneJobEdit', { }, }, + viewModel: { + data: { + jobEnabled: true, + }, + }, + + setValues: function (values) { + let me = this; + + if (!values.schedule) { + values.disable = true; + } + me.callParent([values]); + }, + items: { xtype: 'inputpanel', onGetValues: function (values) { @@ -115,14 +130,23 @@ Ext.define('PBS.window.PruneJobEdit', { cbind: { value: '{scheduleValue}', }, + bind: { + disabled: '{!jobEnabled}', + }, }, { xtype: 'proxmoxcheckbox', - fieldLabel: gettext('Enabled'), + fieldLabel: gettext('Enable'), name: 'enable', - uncheckedValue: 0, - defaultValue: 1, - checked: true, + autoEl: { + tag: 'div', + 'data-qtip': gettext('Enable scheduled execution of this job.'), + }, + bind: { + value: '{jobEnabled}', + }, + uncheckedValue: false, + value: true, }, ], -- 2.47.3