aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-02-15 20:54:47 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-02-15 20:54:47 +0100
commit6d189564509af7a30bb9647dd85679f9cd3367d0 (patch)
treef8e504ba3f54af162f8846e0697f5f807a1bd62b /src/stores/SettingsStore.js
parentfix linting issues (diff)
downloadferdium-app-6d189564509af7a30bb9647dd85679f9cd3367d0.tar.gz
ferdium-app-6d189564509af7a30bb9647dd85679f9cd3367d0.tar.zst
ferdium-app-6d189564509af7a30bb9647dd85679f9cd3367d0.zip
further request cleanup
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js9
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 @@
1import { ipcRenderer } from 'electron'; 1import { ipcRenderer } from 'electron';
2import { action, computed, observable } from 'mobx'; 2import { action, computed } from 'mobx';
3import localStorage from 'mobx-localstorage'; 3import localStorage from 'mobx-localstorage';
4 4
5import Store from './lib/Store'; 5import Store from './lib/Store';
6import Request from './lib/Request';
7import CachedRequest from './lib/CachedRequest';
8import { gaEvent } from '../lib/analytics'; 6import { gaEvent } from '../lib/analytics';
9import SettingsModel from '../models/Settings'; 7import SettingsModel from '../models/Settings';
10 8
11export default class SettingsStore extends Store { 9export 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