* Mail: Additional "Information to show on email tag" preference, "Name and domain"

This commit is contained in:
nathan 2024-01-08 10:01:24 -07:00
parent 5b10064166
commit 460a5bd840
4 changed files with 23 additions and 0 deletions

View File

@ -214,6 +214,9 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
this.defaultValidators.push(new IsEmail(this.allowPlaceholder)); 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 // Additional option for select email, per ticket #79694
this._close_on_select = this.egw().preference("select_multiple_close") != "open"; this._close_on_select = this.egw().preference("select_multiple_close") != "open";
@ -290,6 +293,23 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
this.checkTagOverflow(); this.checkTagOverflow();
} }
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() private addOpenListeners()
{ {
document.addEventListener('mousedown', this.handleLostFocus); document.addEventListener('mousedown', this.handleLostFocus);

View File

@ -370,6 +370,7 @@ class mail_hooks
'onlyname' => lang('only name'), 'onlyname' => lang('only name'),
'fullemail' => lang('name and email'), 'fullemail' => lang('name and email'),
'onlyemail' => lang('only email'), 'onlyemail' => lang('only email'),
'domain' => lang("Name and domain")
], ],
'xmlrpc' => True, 'xmlrpc' => True,
'admin' => False, 'admin' => False,

View File

@ -374,6 +374,7 @@ move to archive mail de Verschiebe in Archivordner
move to trash mail de Verschiebe in Papierkorb 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 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 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 and email mail de Name und E-Mail
name of account mail de Konten-Bezeichnung 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) name of imap servers (space separated host or host:port) mail de Name der IMAP Server (Leerzeichen getrennt Host oder Host:Port)

View File

@ -374,6 +374,7 @@ move to archive mail en Move to archive folder
move to trash mail en Move to trash 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 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 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 and email mail en Name and email
name of account mail en Name of account 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) name of imap servers (space separated host or host:port) mail en Name of IMAP servers (space separated host or host:port)