mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-16 12:45:16 +08:00
17 lines
342 B
JavaScript
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();
|