mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-06-28 14:55:48 +00:00
Resolve #571 by allowing to give an account a name/label
This commit is contained in:
@@ -7,11 +7,14 @@ export class AccountModel extends AbstractModel {
|
||||
* @param {boolean=} canBeDelete = true
|
||||
* @param {number=} count = 0
|
||||
*/
|
||||
constructor(email/*, count = 0*/, isAdditional = true) {
|
||||
constructor(email, name/*, count = 0*/, isAdditional = true) {
|
||||
super();
|
||||
|
||||
this.name = name;
|
||||
this.email = email;
|
||||
|
||||
this.displayName = name ? name + ' <' + email + '>' : email;
|
||||
|
||||
addObservablesTo(this, {
|
||||
// count: count || 0,
|
||||
askDelete: false,
|
||||
|
||||
Reference in New Issue
Block a user