snappymail/dev/Stores/Admin/Domain.js
2016-07-01 01:05:04 +03:00

17 lines
342 B
JavaScript

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