diff options
author | 2018-02-15 20:54:47 +0100 | |
---|---|---|
committer | 2018-02-15 20:54:47 +0100 | |
commit | 6d189564509af7a30bb9647dd85679f9cd3367d0 (patch) | |
tree | f8e504ba3f54af162f8846e0697f5f807a1bd62b /src/stores | |
parent | fix linting issues (diff) | |
download | ferdium-app-6d189564509af7a30bb9647dd85679f9cd3367d0.tar.gz ferdium-app-6d189564509af7a30bb9647dd85679f9cd3367d0.tar.zst ferdium-app-6d189564509af7a30bb9647dd85679f9cd3367d0.zip |
further request cleanup
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/SettingsStore.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 9dc8d82d2..b7d803398 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -1,18 +1,12 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import { action, computed, observable } from 'mobx'; | 2 | import { action, computed } from 'mobx'; |
3 | import localStorage from 'mobx-localstorage'; | 3 | import localStorage from 'mobx-localstorage'; |
4 | 4 | ||
5 | import Store from './lib/Store'; | 5 | import Store from './lib/Store'; |
6 | import Request from './lib/Request'; | ||
7 | import CachedRequest from './lib/CachedRequest'; | ||
8 | import { gaEvent } from '../lib/analytics'; | 6 | import { gaEvent } from '../lib/analytics'; |
9 | import SettingsModel from '../models/Settings'; | 7 | import SettingsModel from '../models/Settings'; |
10 | 8 | ||
11 | export default class SettingsStore extends Store { | 9 | export default class SettingsStore extends Store { |
12 | @observable allSettingsRequest = new CachedRequest(this.api.local, 'getSettings'); | ||
13 | @observable updateSettingsRequest = new Request(this.api.local, 'updateSettings'); | ||
14 | @observable removeSettingsKeyRequest = new Request(this.api.local, 'removeKey'); | ||
15 | |||
16 | constructor(...args) { | 10 | constructor(...args) { |
17 | super(...args); | 11 | super(...args); |
18 | 12 | ||
@@ -22,7 +16,6 @@ export default class SettingsStore extends Store { | |||
22 | } | 16 | } |
23 | 17 | ||
24 | setup() { | 18 | setup() { |
25 | this.allSettingsRequest.execute(); | ||
26 | this._shareSettingsWithMainProcess(); | 19 | this._shareSettingsWithMainProcess(); |
27 | } | 20 | } |
28 | 21 | ||