mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Resolve #571 by allowing to give an account a name/label
This commit is contained in:
parent
2ee9d973e2
commit
decbbd8817
13 changed files with 168 additions and 122 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue