Move addObservablesTo, addComputablesTo & addSubscribablesTo to Common/Utils

This commit is contained in:
djmaze 2021-03-16 10:59:47 +01:00
parent eda0ee695d
commit 4b6f6b1bfc
18 changed files with 55 additions and 46 deletions

View file

@ -1,5 +1,6 @@
import ko from 'ko';
import { SettingsGet } from 'Common/Globals';
import { addObservablesTo } from 'Common/Utils';
export const AccountUserStore = {
accounts: ko.observableArray(),
@ -24,7 +25,7 @@ export const AccountUserStore = {
}
};
ko.addObservablesTo(AccountUserStore, {
addObservablesTo(AccountUserStore, {
email: '',
parentEmail: '',
signature: ''