mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
* Mail: Additional "Information to show on email tag" preference, "Name and domain"
This commit is contained in:
parent
b6b6492139
commit
518c8218d7
@ -200,6 +200,9 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
||||
|
||||
this.defaultValidators.push(new IsEmail(this.allowPlaceholder));
|
||||
|
||||
// Set email display to preference, will be overridden by template attribute
|
||||
this.emailDisplay = this._getEmailDisplayPreference();
|
||||
|
||||
// Additional option for select email, per ticket #79694
|
||||
this._close_on_select = this.egw().preference("select_multiple_close") != "open";
|
||||
|
||||
@ -261,6 +264,23 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
||||
}
|
||||
}
|
||||
|
||||
private _getEmailDisplayPreference()
|
||||
{
|
||||
const pref = this.egw().preference("emailTag", "mail") ?? "";
|
||||
switch(pref)
|
||||
{
|
||||
case "fullemail":
|
||||
return "full"
|
||||
default:
|
||||
case "onlyname":
|
||||
return "name";
|
||||
case "onlyemail":
|
||||
return "email";
|
||||
case "domain":
|
||||
return "domain";
|
||||
}
|
||||
}
|
||||
|
||||
private addOpenListeners()
|
||||
{
|
||||
document.addEventListener('mousedown', this.handleLostFocus);
|
||||
|
@ -370,6 +370,7 @@ class mail_hooks
|
||||
'onlyname' => lang('only name'),
|
||||
'fullemail' => lang('name and email'),
|
||||
'onlyemail' => lang('only email'),
|
||||
'domain' => lang("Name and domain")
|
||||
],
|
||||
'xmlrpc' => True,
|
||||
'admin' => False,
|
||||
|
@ -374,6 +374,7 @@ move to archive mail de Verschiebe in Archivordner
|
||||
move to trash mail de Verschiebe in Papierkorb
|
||||
moved %1 message(s) from %2 to %3 mail de %1 Nachrichten wurden von %2 nach %3 verschoben
|
||||
moving folders from one mailaccount to another is not supported mail de Verschieben von Ordnern von einem Mailkonto zu einem anderen wird nicht unterstützt
|
||||
name and domain mail de Name und Domain
|
||||
name and email mail de Name und E-Mail
|
||||
name of account mail de Konten-Bezeichnung
|
||||
name of imap servers (space separated host or host:port) mail de Name der IMAP Server (Leerzeichen getrennt Host oder Host:Port)
|
||||
|
@ -374,6 +374,7 @@ move to archive mail en Move to archive folder
|
||||
move to trash mail en Move to trash
|
||||
moved %1 message(s) from %2 to %3 mail en Moved %1 message(s) from %2 to %3
|
||||
moving folders from one mailaccount to another is not supported mail en Moving folders from one email account to another is not supported
|
||||
name and domain mail en Name and domain
|
||||
name and email mail en Name and email
|
||||
name of account mail en Name of account
|
||||
name of imap servers (space separated host or host:port) mail en Name of IMAP servers (space separated host or host:port)
|
||||
|
Loading…
Reference in New Issue
Block a user