mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 15:57:37 +08:00
12 lines
351 B
JavaScript
12 lines
351 B
JavaScript
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));
|
|
}
|
|
}
|
|
|
|
export default new DomainAdminStore();
|