courrier preview
This commit is contained in:
parent
dc8febe5f8
commit
76ab4c0e7d
@ -577,7 +577,7 @@ export default function CourrierPage() {
|
|||||||
onRefresh={() => {
|
onRefresh={() => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setPage(1);
|
setPage(1);
|
||||||
loadEmails().finally(() => setLoading(false));
|
loadEmails(page, 10, false).finally(() => setLoading(false));
|
||||||
}}
|
}}
|
||||||
onComposeNew={handleComposeNew}
|
onComposeNew={handleComposeNew}
|
||||||
onAccountSelect={handleAccountSelect}
|
onAccountSelect={handleAccountSelect}
|
||||||
@ -912,7 +912,14 @@ export default function CourrierPage() {
|
|||||||
</Dialog>
|
</Dialog>
|
||||||
|
|
||||||
{/* Edit Password Modal */}
|
{/* 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">
|
<DialogContent className="sm:max-w-[500px] bg-white text-gray-800">
|
||||||
<DialogTitle className="text-gray-800">Edit Account Settings</DialogTitle>
|
<DialogTitle className="text-gray-800">Edit Account Settings</DialogTitle>
|
||||||
<form onSubmit={async e => {
|
<form onSubmit={async e => {
|
||||||
@ -1000,6 +1007,7 @@ export default function CourrierPage() {
|
|||||||
type="text"
|
type="text"
|
||||||
defaultValue={accountToEdit?.name}
|
defaultValue={accountToEdit?.name}
|
||||||
className="mt-1 bg-white text-gray-800"
|
className="mt-1 bg-white text-gray-800"
|
||||||
|
disabled={editLoading}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1012,6 +1020,7 @@ export default function CourrierPage() {
|
|||||||
onChange={e => setNewPassword(e.target.value)}
|
onChange={e => setNewPassword(e.target.value)}
|
||||||
className="mt-1 bg-white text-gray-800"
|
className="mt-1 bg-white text-gray-800"
|
||||||
placeholder="Leave blank to keep current password"
|
placeholder="Leave blank to keep current password"
|
||||||
|
disabled={editLoading}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user