snappymail/dev/Stores/User/Account.js

15 lines
345 B
JavaScript
Raw Normal View History

import ko from 'ko';
import { addObservablesTo } from 'Common/Utils';
2016-06-30 08:02:45 +08:00
export const AccountUserStore = {
accounts: ko.observableArray(),
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: ''
});