mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
Changes _.filter(array) to native array.filter()
This commit is contained in:
parent
af136f46c4
commit
eb15c6e45f
8 changed files with 30 additions and 32 deletions
|
|
@ -1,11 +1,10 @@
|
|||
import _ from '_';
|
||||
import ko from 'ko';
|
||||
|
||||
class DomainAdminStore {
|
||||
constructor() {
|
||||
this.domains = ko.observableArray([]);
|
||||
this.domains.loading = ko.observable(false).extend({ 'throttle': 100 });
|
||||
this.domainsWithoutAliases = ko.computed(() => _.filter(this.domains(), (item) => item && !item.alias));
|
||||
this.domainsWithoutAliases = ko.computed(() => this.domains().filter(item => item && !item.alias));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue