snappymail/dev/Stores/Admin/Domain.js

18 lines
342 B
JavaScript
Raw Normal View History

2016-06-30 08:02:45 +08:00
var ko = require('ko');
2016-06-30 08:02:45 +08:00
/**
* @constructor
*/
function DomainAdminStore()
{
this.domains = ko.observableArray([]);
this.domains.loading = ko.observable(false).extend({'throttle': 100});
2016-06-30 08:02:45 +08:00
this.domainsWithoutAliases = this.domains.filter(function(oItem) {
return oItem && !oItem.alias;
});
}
2016-06-30 08:02:45 +08:00
module.exports = new DomainAdminStore();