From 794e97d7bb2d32e1a7c06bb28c8afdacf070b564 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Mon, 1 Sep 2025 21:25:21 +0000 Subject: [PATCH] fix: change password button not responding to clicks (addresses #396) - Fixed condition for showing authentication section to include configured state - Added proper event handling with preventDefault and stopPropagation - Increased z-index of modal to ensure it appears above other elements - Added debug logging to help diagnose issues - Button now works when authentication is configured but not fully loaded --- .../components/Settings/ChangePasswordModal.tsx | 5 ++++- .../src/components/Settings/Settings.tsx | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/frontend-modern/src/components/Settings/ChangePasswordModal.tsx b/frontend-modern/src/components/Settings/ChangePasswordModal.tsx index d62bcda44..b799ea566 100644 --- a/frontend-modern/src/components/Settings/ChangePasswordModal.tsx +++ b/frontend-modern/src/components/Settings/ChangePasswordModal.tsx @@ -13,6 +13,9 @@ export const ChangePasswordModal: Component = (props) const [confirmPassword, setConfirmPassword] = createSignal(''); const [loading, setLoading] = createSignal(false); const [error, setError] = createSignal(''); + + // Debug logging + console.log('ChangePasswordModal rendered, isOpen:', props.isOpen); const handleSubmit = async (e: Event) => { e.preventDefault(); @@ -110,7 +113,7 @@ export const ChangePasswordModal: Component = (props) return ( -
+

diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx index 95eb59c1c..8af827fec 100644 --- a/frontend-modern/src/components/Settings/Settings.tsx +++ b/frontend-modern/src/components/Settings/Settings.tsx @@ -210,7 +210,10 @@ const Settings: Component = () => { const response = await apiFetch('/api/security/status'); if (response.ok) { const status = await response.json(); + console.log('Security status loaded:', status); setSecurityStatus(status); + } else { + console.error('Failed to fetch security status:', response.status); } } catch (err) { console.error('Failed to fetch security status:', err); @@ -1739,7 +1742,7 @@ const Settings: Component = () => { {/* Authentication */} - +
{/* Header */}
@@ -1760,8 +1763,14 @@ const Settings: Component = () => {