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 0434B1FF0B3 for ; Thu, 26 Nov 2026 14:42:46 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0E990217D8; Thu, 26 Nov 2026 14:42:07 +0100 (CET) From: Jonas Theisen To: pve-devel@lists.proxmox.com Subject: [PATCH widget-toolkit 07/16] node: time: show clock synchronization status Date: Thu, 26 Nov 2026 14:40:04 +0100 Message-ID: <20261126134128.316681-8-j.theisen@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261126134128.316681-1-j.theisen@proxmox.com> References: <20261126134128.316681-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: 1795700512862 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.069 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: DSPP7EDTUB4SQLQWMPBNCNGGOZO3HIUQ X-Message-ID-Hash: DSPP7EDTUB4SQLQWMPBNCNGGOZO3HIUQ 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 VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Show whether the system clock is synchronized in the time view. The row is only shown if the API reports the status, as the view is shared with products whose time API does not provide it. Like the server time, the status is read-only, so double clicking or pressing enter on its row does not open the editor. Signed-off-by: Jonas Theisen --- src/node/TimeView.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/node/TimeView.js b/src/node/TimeView.js index 35ac72f..ca08f98 100644 --- a/src/node/TimeView.js +++ b/src/node/TimeView.js @@ -26,10 +26,10 @@ Ext.define('Proxmox.node.TimeView', { let get_ntp_service = () => me.rstore.getById('ntp-service')?.data.value; - // the server time is read-only, so its row has no action + // the rows with read-only status information have no action let run_row_action = () => { let key = me.getSelectionModel().getSelection()[0]?.data.key; - if (key !== 'localtime') { + if (key !== 'localtime' && key !== 'ntp-synchronized') { run_editor(); } }; @@ -72,6 +72,10 @@ Ext.define('Proxmox.node.TimeView', { 'ntp-pools': { visible: false, }, + 'ntp-synchronized': { + header: gettext('Clock synchronized'), + renderer: Proxmox.Utils.format_boolean, + }, }; let rowOrder = Object.keys(rows); -- 2.47.3