mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 16:58:07 +08:00
30 lines
516 B
JavaScript
30 lines
516 B
JavaScript
|
|
(function () {
|
|
|
|
'use strict';
|
|
|
|
var
|
|
ko = require('ko'),
|
|
|
|
Settings = require('Storage/Settings')
|
|
;
|
|
|
|
/**
|
|
* @constructor
|
|
*/
|
|
function IdentityUserStore()
|
|
{
|
|
this.defaultIdentityID = ko.observable('');
|
|
|
|
this.identities = ko.observableArray([]);
|
|
this.identities.loading = ko.observable(false).extend({'throttle': 100});
|
|
}
|
|
|
|
IdentityUserStore.prototype.populate = function ()
|
|
{
|
|
this.defaultIdentityID(Settings.settingsGet('DefaultIdentityID'));
|
|
};
|
|
|
|
module.exports = new IdentityUserStore();
|
|
|
|
}());
|