From: Kefu Chai <k.chai@proxmox.com>
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 [thread overview]
Message-ID: <20261123130738.3038497-1-k.chai@proxmox.com> (raw)
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 <k.chai@proxmox.com>
---
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
reply other threads:[~2026-11-23 13:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261123130738.3038497-1-k.chai@proxmox.com \
--to=k.chai@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.