Added: option to enable additional account unread messages count

This commit is contained in:
the-djmaze 2022-12-22 10:01:25 +01:00
parent bad33e6dc4
commit 215767ed9b
45 changed files with 96 additions and 39 deletions

View file

@ -1,6 +1,7 @@
import { AbstractModel } from 'Knoin/AbstractModel';
import { addObservablesTo } from 'External/ko';
import Remote from 'Remote/User/Fetch';
import { SettingsUserStore } from 'Stores/User/Settings';
export class AccountModel extends AbstractModel {
/**
@ -23,7 +24,8 @@ export class AccountModel extends AbstractModel {
});
// Load at random between 3 and 30 seconds
isAdditional && setTimeout(()=>this.fetchUnread(), (Math.ceil(Math.random() * 10)) * 3000);
SettingsUserStore.showUnreadCount() && isAdditional
&& setTimeout(()=>this.fetchUnread(), (Math.ceil(Math.random() * 10)) * 3000);
}
/**

View file

@ -5,6 +5,7 @@ import { SettingsCapa, SettingsGet } from 'Common/Globals';
import { AccountUserStore } from 'Stores/User/Account';
import { IdentityUserStore } from 'Stores/User/Identity';
import { SettingsUserStore } from 'Stores/User/Settings';
import Remote from 'Remote/User/Fetch';
import { showScreenPopup } from 'Knoin/Knoin';
@ -25,6 +26,9 @@ export class UserSettingsAccounts /*extends AbstractViewSettings*/ {
this.accountForDeletion = ko.observable(null).askDeleteHelper();
this.identityForDeletion = ko.observable(null).askDeleteHelper();
this.showUnread = SettingsUserStore.showUnreadCount;
SettingsUserStore.showUnreadCount.subscribe(value => Remote.saveSetting('ShowUnreadCount', value));
// this.additionalAccounts = koComputable(() => AccountUserStore.filter(account => account.isAdditional()));
}

View file

@ -28,6 +28,7 @@ export const SettingsUserStore = new class {
hideDeleted: 1,
unhideKolabFolders: 0,
autoLogout: 0,
showUnreadCount: 0,
requestReadReceipt: 0,
requestDsn: 0,
@ -89,6 +90,7 @@ export const SettingsUserStore = new class {
self.hideUnsubscribed(SettingsGet('HideUnsubscribed'));
self.hideDeleted(SettingsGet('HideDeleted'));
self.showUnreadCount(SettingsGet('ShowUnreadCount'));
self.unhideKolabFolders(SettingsGet('UnhideKolabFolders'));
self.requestReadReceipt(SettingsGet('requestReadReceipt'));

View file

@ -709,6 +709,7 @@ class Actions
'ContactsAutosave' => (bool) $oConfig->Get('defaults', 'contacts_autosave', true),
'HideUnsubscribed' => false,
'HideDeleted' => true,
'ShowUnreadCount' => false,
'UnhideKolabFolders' => false,
'UserBackgroundName' => '',
'UserBackgroundHash' => '',
@ -766,6 +767,7 @@ class Actions
$aResult['UseThreads'] = (bool)$oSettingsLocal->GetConf('UseThreads', $aResult['UseThreads']);
$aResult['ReplySameFolder'] = (bool)$oSettingsLocal->GetConf('ReplySameFolder', $aResult['ReplySameFolder']);
$aResult['HideDeleted'] = (bool)$oSettingsLocal->GetConf('HideDeleted', $aResult['HideDeleted']);
$aResult['ShowUnreadCount'] = (bool)$oSettingsLocal->GetConf('ShowUnreadCount', $aResult['ShowUnreadCount']);
$aResult['UnhideKolabFolders'] = (bool)$oSettingsLocal->GetConf('UnhideKolabFolders', $aResult['UnhideKolabFolders']);
}

View file

@ -220,6 +220,7 @@ trait Accounts
$aResult['UseThreads'] = (bool) $oSettingsLocal->GetConf('UseThreads', $oConfig->Get('defaults', 'mail_use_threads', false));
$aResult['ReplySameFolder'] = (bool) $oSettingsLocal->GetConf('ReplySameFolder', $oConfig->Get('defaults', 'mail_reply_same_folder', false));
$aResult['HideDeleted'] = (bool) $oSettingsLocal->GetConf('HideDeleted', true);
$aResult['ShowUnreadCount'] = (bool) $oSettingsLocal->GetConf('ShowUnreadCount', false);
$aResult['UnhideKolabFolders'] = (bool) $oSettingsLocal->GetConf('UnhideKolabFolders', false);
}
// $this->Plugins()->InitAppData($bAdmin, $aResult, $oAccount);

View file

@ -200,6 +200,7 @@ trait User
$this->setSettingsFromParams($oSettingsLocal, 'HideUnsubscribed', 'bool');
$this->setSettingsFromParams($oSettingsLocal, 'HideDeleted', 'bool');
$this->setSettingsFromParams($oSettingsLocal, 'UnhideKolabFolders', 'bool');
$this->setSettingsFromParams($oSettingsLocal, 'ShowUnreadCount', 'bool');
return $this->DefaultResponse($this->SettingsProvider()->Save($oAccount, $oSettings) &&
$this->SettingsProvider(true)->Save($oAccount, $oSettingsLocal));

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "قم باضافة حساب",
"BUTTON_ADD_IDENTITY": "قم باضافة هوية",
"LOADING_PROCESS": "..جاري التحميل",
"DEFAULT_IDENTITY_LABEL": "الافتراضي"
"DEFAULT_IDENTITY_LABEL": "الافتراضي",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": " إستيراد مفتاح",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Добавяне на акаунт",
"BUTTON_ADD_IDENTITY": "Добавяне на идентичност",
"LOADING_PROCESS": "Обновяване на списъка с акаунти",
"DEFAULT_IDENTITY_LABEL": "по подразбиране"
"DEFAULT_IDENTITY_LABEL": "по подразбиране",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Внеси ключ",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Přidat účet",
"BUTTON_ADD_IDENTITY": "Přidat alias",
"LOADING_PROCESS": "Aktualizace seznamu účtů",
"DEFAULT_IDENTITY_LABEL": "výchozí"
"DEFAULT_IDENTITY_LABEL": "výchozí",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importovat klíč",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Tilføj konto",
"BUTTON_ADD_IDENTITY": "Tilføj identitet?",
"LOADING_PROCESS": "Opdaterer...",
"DEFAULT_IDENTITY_LABEL": "standard"
"DEFAULT_IDENTITY_LABEL": "standard",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importer nøgle",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Konto hinzufügen",
"BUTTON_ADD_IDENTITY": "Identität hinzufügen",
"LOADING_PROCESS": "Aktualisiere Kontenliste",
"DEFAULT_IDENTITY_LABEL": "Standard"
"DEFAULT_IDENTITY_LABEL": "Standard",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Schlüssel importieren",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Add an Account",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Updating...",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Import Key",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Add an Account",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Updating...",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Import Key",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Add an Account",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Updating...",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Import Key",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Añadir cuenta",
"BUTTON_ADD_IDENTITY": "Añadir identidad",
"LOADING_PROCESS": "Actualizando lista de cuentas",
"DEFAULT_IDENTITY_LABEL": "predeterminado"
"DEFAULT_IDENTITY_LABEL": "predeterminado",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importar llave",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Lisa konto",
"BUTTON_ADD_IDENTITY": "Lisa identiteet",
"LOADING_PROCESS": "Värskendan...",
"DEFAULT_IDENTITY_LABEL": "vaikimisi"
"DEFAULT_IDENTITY_LABEL": "vaikimisi",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Impordi võti",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Gehitu kontu bat",
"BUTTON_ADD_IDENTITY": "Gehitu identitate bat",
"LOADING_PROCESS": "Eguneratzen...",
"DEFAULT_IDENTITY_LABEL": "lehenetsia"
"DEFAULT_IDENTITY_LABEL": "lehenetsia",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Inportatu Gakoa",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "اضافه کردن یک حساب کاربری",
"BUTTON_ADD_IDENTITY": "اضافه کردن یک شناسه",
"LOADING_PROCESS": "بروزرسانی...",
"DEFAULT_IDENTITY_LABEL": "پیش‌فرض"
"DEFAULT_IDENTITY_LABEL": "پیش‌فرض",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "وارد کردن کلید",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Lisää Tili",
"BUTTON_ADD_IDENTITY": "Lisää identiteetti",
"LOADING_PROCESS": "Päivitetään...",
"DEFAULT_IDENTITY_LABEL": "oletus"
"DEFAULT_IDENTITY_LABEL": "oletus",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Tuo avain",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Ajouter un compte",
"BUTTON_ADD_IDENTITY": "Ajouter une identité",
"LOADING_PROCESS": "Mise à jour de la liste des comptes",
"DEFAULT_IDENTITY_LABEL": "défaut"
"DEFAULT_IDENTITY_LABEL": "défaut",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importer la clé",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Fiók hozzáadás",
"BUTTON_ADD_IDENTITY": "Identitás hozzáadás",
"LOADING_PROCESS": "Fiók lista frissítés",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Kulcs importálás",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Tambahkan akun",
"BUTTON_ADD_IDENTITY": "Tambahkan identitas",
"LOADING_PROCESS": "Memperbarui...",
"DEFAULT_IDENTITY_LABEL": "Bawaan"
"DEFAULT_IDENTITY_LABEL": "Bawaan",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Impor kunci",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Bæta við aðgangi",
"BUTTON_ADD_IDENTITY": "Bæta við auðkenni",
"LOADING_PROCESS": "Uppfæri aðgangslista",
"DEFAULT_IDENTITY_LABEL": "sjálfgefið"
"DEFAULT_IDENTITY_LABEL": "sjálfgefið",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Flytja inn lykil",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Aggiungi account",
"BUTTON_ADD_IDENTITY": "Aggiungi identità",
"LOADING_PROCESS": "Aggiornamento della lista degli account...",
"DEFAULT_IDENTITY_LABEL": "predefinito"
"DEFAULT_IDENTITY_LABEL": "predefinito",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importa chiave",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "アカウントを追加",
"BUTTON_ADD_IDENTITY": "表示名を追加",
"LOADING_PROCESS": "更新中",
"DEFAULT_IDENTITY_LABEL": "デフォルト"
"DEFAULT_IDENTITY_LABEL": "デフォルト",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "キーをインポート",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "계정 추가",
"BUTTON_ADD_IDENTITY": "신원 추가",
"LOADING_PROCESS": "업데이트 중...",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "키 가져오기",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Pridėti paskyrą",
"BUTTON_ADD_IDENTITY": "Pridėti tapatybę",
"LOADING_PROCESS": "Atnaujinamas paskyrų sąrašas",
"DEFAULT_IDENTITY_LABEL": "numatytasis"
"DEFAULT_IDENTITY_LABEL": "numatytasis",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importuoti raktą",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Pievienot kontu",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Atjauno kontu sarakstu",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Import Key",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Legg til konto",
"BUTTON_ADD_IDENTITY": "Legg til identitet",
"LOADING_PROCESS": "Oppdaterer …",
"DEFAULT_IDENTITY_LABEL": "Standard"
"DEFAULT_IDENTITY_LABEL": "Standard",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importer nøkkel",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Account toevoegen",
"BUTTON_ADD_IDENTITY": "Identiteit toevoegen",
"LOADING_PROCESS": "Account lijst aan het bijwerken",
"DEFAULT_IDENTITY_LABEL": "standaard"
"DEFAULT_IDENTITY_LABEL": "standaard",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importeer sleutel",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Dodaj konto",
"BUTTON_ADD_IDENTITY": "Dodaj tożsamość",
"LOADING_PROCESS": "Trwa aktualizowanie listy kont",
"DEFAULT_IDENTITY_LABEL": "domyślna"
"DEFAULT_IDENTITY_LABEL": "domyślna",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importuj klucz",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Adicionar uma conta",
"BUTTON_ADD_IDENTITY": "Adicionar uma identidade",
"LOADING_PROCESS": "Atualizando a lista de contas",
"DEFAULT_IDENTITY_LABEL": "padrão"
"DEFAULT_IDENTITY_LABEL": "padrão",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importa chave",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Adicionar uma conta",
"BUTTON_ADD_IDENTITY": "Adicionar uma identidade",
"LOADING_PROCESS": "A atualizar...",
"DEFAULT_IDENTITY_LABEL": "predefinida"
"DEFAULT_IDENTITY_LABEL": "predefinida",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importar chave",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Adicionar uma conta",
"BUTTON_ADD_IDENTITY": "Adicionar uma identidade",
"LOADING_PROCESS": "A atualizar...",
"DEFAULT_IDENTITY_LABEL": "predefinida"
"DEFAULT_IDENTITY_LABEL": "predefinida",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importar chave",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Adaugă un alt cont",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Actualizez lista de conturi",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Import Key",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Добавить ещё аккаунт",
"BUTTON_ADD_IDENTITY": "Добавить персону",
"LOADING_PROCESS": "Обновление списка аккаунтов",
"DEFAULT_IDENTITY_LABEL": "основной"
"DEFAULT_IDENTITY_LABEL": "основной",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Ипортировать ключ",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Pridať účet",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Aktualizácia zoznamu účtov",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Import Key",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Dodaj račun",
"BUTTON_ADD_IDENTITY": "Dodaj identiteto",
"LOADING_PROCESS": "Posodabljanje...",
"DEFAULT_IDENTITY_LABEL": "privzeto"
"DEFAULT_IDENTITY_LABEL": "privzeto",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Uvozi ključ",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Lägg till konto",
"BUTTON_ADD_IDENTITY": "Lägg till identitet",
"LOADING_PROCESS": "Uppdaterar kontolista",
"DEFAULT_IDENTITY_LABEL": "standard"
"DEFAULT_IDENTITY_LABEL": "standard",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Importera nyckel",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Hesap Ekle",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Hesap listesi güncelleniyor",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Key İçe Aktar",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Додати ще акаунт",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "Оновлення списку акаунтів",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Імпортувати ключ",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "Thêm một tài khoản",
"BUTTON_ADD_IDENTITY": "Thêm một tên gọi",
"LOADING_PROCESS": "Đang cập nhật...",
"DEFAULT_IDENTITY_LABEL": "mặc định"
"DEFAULT_IDENTITY_LABEL": "mặc định",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "Nhập mật mã",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "添加一个账户",
"BUTTON_ADD_IDENTITY": "添加一个身份",
"LOADING_PROCESS": "更新账户列表中",
"DEFAULT_IDENTITY_LABEL": "默认"
"DEFAULT_IDENTITY_LABEL": "默认",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "导入 密钥",

View file

@ -467,7 +467,8 @@
"BUTTON_ADD_ACCOUNT": "添加一個帳戶",
"BUTTON_ADD_IDENTITY": "Add an Identity",
"LOADING_PROCESS": "更新帳戶列表中",
"DEFAULT_IDENTITY_LABEL": "default"
"DEFAULT_IDENTITY_LABEL": "default",
"SHOW_UNREAD": "Show unread messages count"
},
"SETTINGS_OPENPGP": {
"BUTTON_IMPORT_KEY": "導入 Key",

View file

@ -4,6 +4,13 @@
   
<i class="icon-spinner" style="margin-top: 5px" data-bind="visible: loading"></i>
</div>
<div data-bind="component: {
name: 'Checkbox',
params: {
label: 'SETTINGS_ACCOUNTS/SHOW_UNREAD',
value: showUnread
}
}"></div>
<a class="btn" data-bind="click: addNewAccount">
<i class="icon-user-add"></i>
<span data-i18n="SETTINGS_ACCOUNTS/BUTTON_ADD_ACCOUNT"></span>