snappymail/dev/Stores/User/Identity.js
RainLoop Team e5af98b04b Update ckeditor
Move e2e tests
Code refactoring
2016-09-12 23:50:21 +03:00

16 lines
368 B
JavaScript

import _ from '_';
import ko from 'ko';
class IdentityUserStore
{
constructor() {
this.identities = ko.observableArray([]);
this.identities.loading = ko.observable(false).extend({throttle: 100});
this.identitiesIDS = ko.computed(
() => _.compact(_.map(this.identities(), (item) => (item ? item.id : null))));
}
}
export default new IdentityUserStore();