mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
15 lines
366 B
JavaScript
15 lines
366 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))));
|
|
}
|
|
}
|
|
|
|
module.exports = new IdentityUserStore();
|