snappymail/dev/Stores/User/Account.js

13 lines
354 B
JavaScript
Raw Normal View History

import { addObservablesTo, koArrayWithDestroy } from 'External/ko';
2016-06-30 08:02:45 +08:00
export const AccountUserStore = koArrayWithDestroy();
2015-02-19 03:52:52 +08:00
AccountUserStore.loading = ko.observable(false).extend({ debounce: 100 });
AccountUserStore.getEmailAddresses = () => AccountUserStore.map(item => item.email);
addObservablesTo(AccountUserStore, {
email: '',
signature: ''
});