From 76ab4c0e7d5f305525c7d2ade64b0826527e57be Mon Sep 17 00:00:00 2001 From: alma Date: Thu, 1 May 2025 21:13:48 +0200 Subject: [PATCH] courrier preview --- app/courrier/page.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index eb582624..995b9c78 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -577,7 +577,7 @@ export default function CourrierPage() { onRefresh={() => { setLoading(true); setPage(1); - loadEmails().finally(() => setLoading(false)); + loadEmails(page, 10, false).finally(() => setLoading(false)); }} onComposeNew={handleComposeNew} onAccountSelect={handleAccountSelect} @@ -912,7 +912,14 @@ export default function CourrierPage() { {/* Edit Password Modal */} - { if (!open) setShowEditModal(false); }}> + { + if (!open) { + setShowEditModal(false); + setEditLoading(false); + setAccountToEdit(null); + setNewPassword(''); + } + }}> Edit Account Settings
{ @@ -1000,6 +1007,7 @@ export default function CourrierPage() { type="text" defaultValue={accountToEdit?.name} className="mt-1 bg-white text-gray-800" + disabled={editLoading} /> @@ -1012,6 +1020,7 @@ export default function CourrierPage() { onChange={e => setNewPassword(e.target.value)} className="mt-1 bg-white text-gray-800" placeholder="Leave blank to keep current password" + disabled={editLoading} />