snappymail/dev/Stores/User/Identity.js

8 lines
308 B
JavaScript
Raw Normal View History

import { koArrayWithDestroy } from 'External/ko';
2015-11-19 01:32:29 +08:00
export const IdentityUserStore = koArrayWithDestroy();
2015-11-19 01:32:29 +08:00
IdentityUserStore.getIDS = () => IdentityUserStore.map(item => (item ? item.id() : null))
.filter(value => null !== value);
IdentityUserStore.loading = ko.observable(false).extend({ debounce: 100 });