mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Improved handling of Internationalized Domain Names in punycode
This commit is contained in:
parent
fd54796710
commit
696a2bbd3c
45 changed files with 661 additions and 236 deletions
|
|
@ -28,6 +28,10 @@ export class AccountModel extends AbstractModel {
|
|||
&& setTimeout(()=>this.fetchUnread(), (Math.ceil(Math.random() * 10)) * 3000);
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.name || IDN.toUnicode(this.email);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get INBOX unread messages
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ DomainAdminStore.fetch = () => {
|
|||
if (!iError) {
|
||||
DomainAdminStore(
|
||||
data.Result.map(item => {
|
||||
item.name = IDN.toUnicode(item.name);
|
||||
item.disabled = ko.observable(item.disabled);
|
||||
item.askDelete = ko.observable(false);
|
||||
return item;
|
||||
|
|
|
|||
|
|
@ -87,9 +87,8 @@ export class SystemDropDownUserView extends AbstractViewRight {
|
|||
}
|
||||
|
||||
accountName() {
|
||||
let email = AccountUserStore.email(),
|
||||
account = AccountUserStore.find(account => account.email == email);
|
||||
return account?.name || email;
|
||||
const email = AccountUserStore.email();
|
||||
return AccountUserStore.find(account => account.email == email)?.label() || IDN.toUnicode(email);
|
||||
}
|
||||
|
||||
settingsClick() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue