mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Cleanup additional accounts in system menu
This commit is contained in:
parent
64e77de103
commit
0d809dd574
7 changed files with 25 additions and 44 deletions
|
|
@ -5,18 +5,7 @@ export const AccountUserStore = {
|
|||
accounts: ko.observableArray(),
|
||||
loading: ko.observable(false).extend({ debounce: 100 }),
|
||||
|
||||
getEmailAddresses: () => AccountUserStore.accounts.map(item => item.email),
|
||||
|
||||
accountsUnreadCount: ko.computed(() => 0),
|
||||
// accountsUnreadCount: ko.computed(() => {
|
||||
// let result = 0;
|
||||
// AccountUserStore.accounts().forEach(item => {
|
||||
// if (item) {
|
||||
// result += item.count();
|
||||
// }
|
||||
// });
|
||||
// return result;
|
||||
// }),
|
||||
getEmailAddresses: () => AccountUserStore.accounts.map(item => item.email)
|
||||
};
|
||||
|
||||
addObservablesTo(AccountUserStore, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue