snappymail/dev/Stores/Admin/Domain.js

12 lines
327 B
JavaScript
Raw Normal View History

import ko from 'ko';
2019-07-05 03:19:24 +08:00
class DomainAdminStore {
constructor() {
this.domains = ko.observableArray([]);
2019-07-05 03:19:24 +08:00
this.domains.loading = ko.observable(false).extend({ 'throttle': 100 });
this.domainsWithoutAliases = ko.computed(() => this.domains().filter(item => item && !item.alias));
}
2016-06-30 08:02:45 +08:00
}
export default new DomainAdminStore();