courrier preview
This commit is contained in:
parent
dc8febe5f8
commit
76ab4c0e7d
@ -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() {
|
||||
</Dialog>
|
||||
|
||||
{/* Edit Password Modal */}
|
||||
<Dialog open={showEditModal} onOpenChange={open => { if (!open) setShowEditModal(false); }}>
|
||||
<Dialog open={showEditModal} onOpenChange={open => {
|
||||
if (!open) {
|
||||
setShowEditModal(false);
|
||||
setEditLoading(false);
|
||||
setAccountToEdit(null);
|
||||
setNewPassword('');
|
||||
}
|
||||
}}>
|
||||
<DialogContent className="sm:max-w-[500px] bg-white text-gray-800">
|
||||
<DialogTitle className="text-gray-800">Edit Account Settings</DialogTitle>
|
||||
<form onSubmit={async e => {
|
||||
@ -1000,6 +1007,7 @@ export default function CourrierPage() {
|
||||
type="text"
|
||||
defaultValue={accountToEdit?.name}
|
||||
className="mt-1 bg-white text-gray-800"
|
||||
disabled={editLoading}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@ -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}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user