fix(mail): account creation form - add username and is_shared fields
- Add username field to account creation form (defaults to email if empty) - Add is_shared checkbox toggle for shared mailboxes - Update CreateAccountPayload type with optional username and is_shared - The infinite re-render fix (previous commit) resolves the main issue: accounts were not shown in settings because loadAccounts was looping, flooding the browser with requests and preventing API calls from completing
This commit is contained in:
@@ -192,7 +192,9 @@ export interface CreateAccountPayload {
|
||||
imap_port: number;
|
||||
smtp_host: string;
|
||||
smtp_port: number;
|
||||
username?: string;
|
||||
password: string;
|
||||
is_shared?: boolean;
|
||||
}
|
||||
|
||||
export interface UpdateAccountPayload {
|
||||
|
||||
Reference in New Issue
Block a user