From 004949d3a0eecc12e9e35e259f83e465d97e7352 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 4 Nov 2025 19:21:31 +0100 Subject: [PATCH] Update proxmox-dashboard.tsx --- AppImage/components/proxmox-dashboard.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/AppImage/components/proxmox-dashboard.tsx b/AppImage/components/proxmox-dashboard.tsx index 88762a9..ab96b55 100644 --- a/AppImage/components/proxmox-dashboard.tsx +++ b/AppImage/components/proxmox-dashboard.tsx @@ -320,13 +320,19 @@ export function ProxmoxDashboard() { setAuthRequired(data.auth_enabled) setIsAuthenticated(data.authenticated) - setAuthDeclined(hasDeclined || !data.auth_enabled) + + // If auth is not configured and user hasn't declined, show the modal + const shouldShowModal = !data.auth_configured && !hasDeclined + setAuthDeclined(!shouldShowModal) setAuthChecked(true) console.log("[v0] Auth state:", { authRequired: data.auth_enabled, isAuthenticated: data.authenticated, - authDeclined: hasDeclined || !data.auth_enabled, + authConfigured: data.auth_configured, + hasDeclined: hasDeclined, + shouldShowModal: shouldShowModal, + authDeclined: !shouldShowModal, }) if (data.authenticated && token) {