mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-11 01:23:43 +08:00
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
import ko from 'ko';
|
|
import { addObservablesTo } from 'Common/Utils';
|
|
|
|
export const AccountUserStore = {
|
|
accounts: ko.observableArray(),
|
|
loading: ko.observable(false).extend({ debounce: 100 }),
|
|
|
|
getEmailAddresses: () => AccountUserStore.accounts.map(item => item.email)
|
|
};
|
|
|
|
addObservablesTo(AccountUserStore, {
|
|
email: '',
|
|
signature: ''
|
|
});
|