From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 45D4B1FF13B for ; Tue, 13 Jan 2026 13:01:34 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 6C5AB164C4; Tue, 13 Jan 2026 13:01:35 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Tue, 13 Jan 2026 13:01:06 +0100 Message-ID: <20260113120132.2560888-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.031 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager] ui: reset UI state on automatic logout X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" when clicking the 'Logout' button, the UI state resets such that the resource tree gets cleared out, the ClusterName is deleted and the current panel gets removed. In contrast, when automatically logged out (e.g. the ticket was invalid), we only showed the login mask over the current state. To make it more consistent, also reset the state when automatically logged out. This fixes showing (possibly sensitive) data when the user is actually logged out. Since the navigation state is saved in the fragment, when the user logs in again, the last used panel is automatically loaded again. Signed-off-by: Dominik Csapak --- www/manager6/Workspace.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www/manager6/Workspace.js b/www/manager6/Workspace.js index ce7ea21f..3d3b5f62 100644 --- a/www/manager6/Workspace.js +++ b/www/manager6/Workspace.js @@ -55,6 +55,11 @@ Ext.define('PVE.Workspace', { } me.onLogin(null); me.login.show(); + + // reset ui state + PVE.ClusterName = undefined; + me.down('pveResourceTree')?.clearTree(); + me.setContent(null); }, initComponent: function () { @@ -450,10 +455,6 @@ Ext.define('PVE.StdWorkspace', { handler: function () { PVE.data.ResourceStore.loadData([], false); me.showLogin(); - me.setContent(null); - var rt = me.down('pveResourceTree'); - PVE.ClusterName = undefined; - rt.clearTree(); // empty the stores of the StatusPanel child items var statusPanels = -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel