From f01957203f77fce8b65d5e034a8acd68f1e0ae2e Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 9 Dec 2018 01:01:12 +0100 Subject: Upgrade to react 16 TODO: add componentDidCatch --- src/stores/SettingsStore.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/stores/SettingsStore.js') diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 4c01e9910..e2211aec6 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -57,6 +57,21 @@ export default class SettingsStore extends Store { } @computed get proxy() { + // // We need to provide the final data structure as mobx autoruns won't work + // const proxySettings = observable({}); + // this.stores.services.all.forEach((service) => { + // proxySettings[service.id] = { + // isEnabled: false, + // host: null, + // user: null, + // password: null, + // }; + // }); + + // debug('this._fileSystemSettingsCache.proxy', this._fileSystemSettingsCache.proxy, proxySettings); + + // return Object.assign(proxySettings, this._fileSystemSettingsCache.proxy); + return this._fileSystemSettingsCache.proxy || {}; } -- cgit v1.2.3-54-g00ecf