mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 20:24:51 +08:00
de0648a392
Domain system improvement
44 lines
No EOL
1.4 KiB
JavaScript
44 lines
No EOL
1.4 KiB
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
/**
|
|
* @constructor
|
|
* @extends AbstractData
|
|
*/
|
|
function AdminDataStorage()
|
|
{
|
|
AbstractData.call(this);
|
|
|
|
this.domainsLoading = ko.observable(false).extend({'throttle': 100});
|
|
this.domains = ko.observableArray([]);
|
|
|
|
this.pluginsLoading = ko.observable(false).extend({'throttle': 100});
|
|
this.plugins = ko.observableArray([]);
|
|
|
|
this.packagesReal = ko.observable(true);
|
|
this.packagesMainUpdatable = ko.observable(true);
|
|
this.packagesLoading = ko.observable(false).extend({'throttle': 100});
|
|
this.packages = ko.observableArray([]);
|
|
|
|
this.licensing = ko.observable(false);
|
|
this.licensingProcess = ko.observable(false);
|
|
this.licenseValid = ko.observable(false);
|
|
this.licenseExpired = ko.observable(0);
|
|
this.licenseError = ko.observable('');
|
|
|
|
this.licenseTrigger = ko.observable(false);
|
|
|
|
this.adminManLoading = ko.computed(function () {
|
|
return '000' !== [this.domainsLoading() ? '1' : '0', this.pluginsLoading() ? '1' : '0', this.packagesLoading() ? '1' : '0'].join('');
|
|
}, this);
|
|
|
|
this.adminManLoadingVisibility = ko.computed(function () {
|
|
return this.adminManLoading() ? 'visible' : 'hidden';
|
|
}, this).extend({'rateLimit': 300});
|
|
}
|
|
|
|
_.extend(AdminDataStorage.prototype, AbstractData.prototype);
|
|
|
|
AdminDataStorage.prototype.populateDataOnStart = function()
|
|
{
|
|
AbstractData.prototype.populateDataOnStart.call(this);
|
|
}; |