djmaze 2020-09-24 15:08:57 +02:00
parent d291716489
commit 4257d9ca78
8 changed files with 16 additions and 37 deletions

View file

@ -10,13 +10,7 @@ class AccountUserStore {
this.accounts = ko.observableArray([]);
this.accounts.loading = ko.observable(false).extend({ throttle: 100 });
this.computers();
}
computers() {
this.accountsEmails = ko.computed(
() => this.accounts().map(item => (item ? item.email : null)).filter(value => !!value)
);
this.getEmailAddresses = () => this.accounts().map(item => item ? item.email : null).filter(value => !!value);
this.accountsUnreadCount = ko.computed(() => 0);
// this.accountsUnreadCount = ko.computed(() => {