courrier formatting

This commit is contained in:
alma 2025-04-30 16:05:54 +02:00
parent 36d4fb8c40
commit fcf1631e0f
2 changed files with 2 additions and 4 deletions

View File

@ -135,6 +135,7 @@ export default function EmailList({
/>
</div>
{/* Only show bulk actions when emails are explicitly selected via checkboxes */}
{selectedEmailIds.length > 0 && (
<BulkActionsToolbar
selectedCount={selectedEmailIds.length}

View File

@ -243,10 +243,7 @@ export function emailReducer(state: EmailState, action: EmailAction): EmailState
return {
...state,
selectedEmail: action.payload.email,
// If an email is selected, add it to the selectedEmailIds if not already there
selectedEmailIds: action.payload.email && !state.selectedEmailIds.includes(action.payload.emailId)
? [...state.selectedEmailIds, action.payload.emailId]
: state.selectedEmailIds
// Don't modify selectedEmailIds when just selecting an email for preview
};
case 'TOGGLE_EMAIL_SELECTION': {