snappymail/dev/Stores/User/Account.js

14 lines
343 B
JavaScript
Raw Normal View History

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