Cleanup additional accounts in system menu

This commit is contained in:
djmaze 2021-12-02 11:12:21 +01:00
parent 64e77de103
commit 0d809dd574
7 changed files with 25 additions and 44 deletions

View file

@ -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, {