mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
6116597f6f
New ownCloud package with a built-in webmail
47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
ko = require('ko'),
|
|
|
|
Enums = require('Common/Enums'),
|
|
|
|
Settings = require('Storage/Settings')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
function CapaAdminStore()
|
|
{
|
|
this.additionalAccounts = ko.observable(false);
|
|
this.gravatar = ko.observable(false);
|
|
this.attachmentThumbnails = ko.observable(false);
|
|
this.sieve = ko.observable(false);
|
|
this.filters = ko.observable(false);
|
|
this.themes = ko.observable(true);
|
|
this.userBackground = ko.observable(false);
|
|
this.openPGP = ko.observable(false);
|
|
this.twoFactorAuth = ko.observable(false);
|
|
this.templates = ko.observable(false);
|
|
}
|
|
|
|
CapaAdminStore.prototype.populate = function()
|
|
{
|
|
this.additionalAccounts(Settings.capa(Enums.Capa.AdditionalAccounts));
|
|
this.gravatar(Settings.capa(Enums.Capa.Gravatar));
|
|
this.attachmentThumbnails(Settings.capa(Enums.Capa.AttachmentThumbnails));
|
|
this.sieve(Settings.capa(Enums.Capa.Sieve));
|
|
this.filters(Settings.capa(Enums.Capa.Filters));
|
|
this.themes(Settings.capa(Enums.Capa.Themes));
|
|
this.userBackground(Settings.capa(Enums.Capa.UserBackground));
|
|
this.openPGP(Settings.capa(Enums.Capa.OpenPGP));
|
|
this.twoFactorAuth(Settings.capa(Enums.Capa.TwoFactor));
|
|
this.templates(Settings.capa(Enums.Capa.Templates));
|
|
};
|
|
|
|
module.exports = new CapaAdminStore();
|
|
|
|
}());
|