2022-02-17 19:48:57 +08:00
|
|
|
import { addObservablesTo, koArrayWithDestroy } from 'External/ko';
|
2016-06-30 08:02:45 +08:00
|
|
|
|
2021-03-11 05:41:35 +08:00
|
|
|
export const AccountUserStore = {
|
2022-02-17 19:48:57 +08:00
|
|
|
accounts: koArrayWithDestroy(),
|
2021-03-11 05:41:35 +08:00
|
|
|
loading: ko.observable(false).extend({ debounce: 100 }),
|
2015-02-19 03:52:52 +08:00
|
|
|
|
2021-12-02 18:12:21 +08:00
|
|
|
getEmailAddresses: () => AccountUserStore.accounts.map(item => item.email)
|
2021-03-11 05:41:35 +08:00
|
|
|
};
|
2016-08-17 06:01:20 +08:00
|
|
|
|
2021-03-16 17:59:47 +08:00
|
|
|
addObservablesTo(AccountUserStore, {
|
2021-03-11 05:41:35 +08:00
|
|
|
email: '',
|
|
|
|
signature: ''
|
|
|
|
});
|