mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 05:59:21 +03:00
Sieve filters (pre release)
This commit is contained in:
parent
63a286a6b6
commit
0152f1583b
38 changed files with 175 additions and 63 deletions
30
dev/Stores/User/Identity.js
Normal file
30
dev/Stores/User/Identity.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
(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();
|
||||
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue