mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-06 06:52:20 +08:00
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
ko = require('ko'),
|
|
|
|
Settings = require('Storage/Settings'),
|
|
|
|
AppStore = require('Stores/App')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
function AppUserStore()
|
|
{
|
|
AppStore.call(this);
|
|
|
|
this.projectHash = ko.observable('');
|
|
this.threadsAllowed = ko.observable(false);
|
|
|
|
this.composeInEdit = ko.observable(false);
|
|
|
|
this.contactsAutosave = ko.observable(false);
|
|
this.useLocalProxyForExternalImages = ko.observable(false);
|
|
|
|
this.contactsIsAllowed = ko.observable(false);
|
|
|
|
this.devEmail = '';
|
|
this.devPassword = '';
|
|
}
|
|
|
|
AppUserStore.prototype.populate = function()
|
|
{
|
|
AppStore.prototype.populate.call(this);
|
|
|
|
this.projectHash(Settings.settingsGet('ProjectHash'));
|
|
|
|
this.contactsAutosave(!!Settings.settingsGet('ContactsAutosave'));
|
|
this.useLocalProxyForExternalImages(!!Settings.settingsGet('UseLocalProxyForExternalImages'));
|
|
|
|
this.contactsIsAllowed(!!Settings.settingsGet('ContactsIsAllowed'));
|
|
|
|
this.devEmail = Settings.settingsGet('DevEmail');
|
|
this.devPassword = Settings.settingsGet('DevPassword');
|
|
};
|
|
|
|
module.exports = new AppUserStore();
|
|
|
|
}());
|