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 1455D1FF065 for ; Mon, 23 Nov 2026 14:07:47 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 62D49203D6; Mon, 23 Nov 2026 14:07:46 +0100 (CET) From: Kefu Chai To: pve-devel@lists.proxmox.com Subject: [PATCH widget-toolkit] fix #8297: dns/time: reload the view after the editor closes Date: Mon, 23 Nov 2026 21:07:38 +0800 Message-ID: <20261123130738.3038497-1-k.chai@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795439261543 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.196 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: R3SYEQJY6GNOBBFBURGSJ5PSMNOHMBU6 X-Message-ID-Hash: R3SYEQJY6GNOBBFBURGSJ5PSMNOHMBU6 X-MailFrom: k.chai@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: Both views override ObjectGrid's run_editor with their own, and that silently drops the win.on('destroy', reload) the default one sets up, so after saving, the panel keeps the old values until the next poll comes around. The DNS view used to poll every second, which hid this. Since the interval went up to 10s in 2022, removing a DNS server looks like it did nothing (#8297). The time view still polls every second, but it has the same gap, so fix it there too. Signed-off-by: Kefu Chai --- src/node/DNSView.js | 6 ++++-- src/node/TimeView.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/node/DNSView.js b/src/node/DNSView.js index 48030c2..0ebea22 100644 --- a/src/node/DNSView.js +++ b/src/node/DNSView.js @@ -13,12 +13,14 @@ Ext.define('Proxmox.node.DNSView', { throw 'no node name specified'; } - let run_editor = () => - Ext.create('Proxmox.node.DNSEdit', { + let run_editor = () => { + let win = Ext.create('Proxmox.node.DNSEdit', { autoShow: true, nodename: me.nodename, deleteEmpty: me.deleteEmpty, }); + win.on('destroy', me.reload, me); + }; Ext.apply(me, { url: `/api2/json/nodes/${me.nodename}/dns`, diff --git a/src/node/TimeView.js b/src/node/TimeView.js index 92d203a..cb74585 100644 --- a/src/node/TimeView.js +++ b/src/node/TimeView.js @@ -15,11 +15,13 @@ Ext.define('Proxmox.node.TimeView', { return Ext.Date.format(servertime, 'Y-m-d H:i:s'); }; - let run_editor = () => - Ext.create('Proxmox.node.TimeEdit', { + let run_editor = () => { + let win = Ext.create('Proxmox.node.TimeEdit', { autoShow: true, nodename: me.nodename, }); + win.on('destroy', me.reload, me); + }; Ext.apply(me, { url: `/api2/json/nodes/${me.nodename}/time`, -- 2.47.3