mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Resolve #1405
This commit is contained in:
parent
d1154df74d
commit
a25d35d6df
45 changed files with 163 additions and 169 deletions
|
|
@ -11,6 +11,7 @@ export class IdentityModel extends AbstractModel {
|
|||
|
||||
addObservablesTo(this, {
|
||||
id: '',
|
||||
label: '',
|
||||
email: '',
|
||||
name: '',
|
||||
|
||||
|
|
@ -29,8 +30,8 @@ export class IdentityModel extends AbstractModel {
|
|||
*/
|
||||
formattedName() {
|
||||
const name = this.name(),
|
||||
email = this.email();
|
||||
|
||||
return name ? name + ' <' + email + '>' : email;
|
||||
email = this.email(),
|
||||
label = this.label();
|
||||
return (name ? `${name} ` : '') + `<${email}>` + (label ? ` (${label})` : '');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue