aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Amine <amine@mouafik.fr>2020-03-02 13:57:49 +0100
committerLibravatar GitHub <noreply@github.com>2020-03-02 13:57:49 +0100
commit7cc26c9b84191e9ecff0866a7b5d5248bb4207b1 (patch)
treed18858559d8aad6c881c65e7b309d19686cba2db /src/stores
parentNew Crowdin translations (#420) (diff)
parentRun linter (diff)
downloadferdium-app-7cc26c9b84191e9ecff0866a7b5d5248bb4207b1.tar.gz
ferdium-app-7cc26c9b84191e9ecff0866a7b5d5248bb4207b1.tar.zst
ferdium-app-7cc26c9b84191e9ecff0866a7b5d5248bb4207b1.zip
Merge pull request #419 from getferdi/fix/context-menu
Fix and enhance context menu
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/SettingsStore.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index 26e83b725..71d4e1702 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -1,5 +1,7 @@
1import { ipcRenderer, remote } from 'electron'; 1import { ipcRenderer, remote } from 'electron';
2import { action, computed, observable, reaction } from 'mobx'; 2import {
3 action, computed, observable, reaction,
4} from 'mobx';
3import localStorage from 'mobx-localstorage'; 5import localStorage from 'mobx-localstorage';
4import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER } from '../config'; 6import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER } from '../config';
5import { API } from '../environment'; 7import { API } from '../environment';
@@ -12,6 +14,7 @@ const debug = require('debug')('Ferdi:SettingsStore');
12 14
13export default class SettingsStore extends Store { 15export default class SettingsStore extends Store {
14 @observable updateAppSettingsRequest = new Request(this.api.local, 'updateAppSettings'); 16 @observable updateAppSettingsRequest = new Request(this.api.local, 'updateAppSettings');
17
15 startup = true; 18 startup = true;
16 19
17 fileSystemSettingsTypes = FILE_SYSTEM_SETTINGS_TYPES; 20 fileSystemSettingsTypes = FILE_SYSTEM_SETTINGS_TYPES;
@@ -103,7 +106,7 @@ export default class SettingsStore extends Store {
103 // So we lock manually 106 // So we lock manually
104 window.ferdi.stores.router.push('/auth/locked'); 107 window.ferdi.stores.router.push('/auth/locked');
105 } 108 }
106 }) 109 });
107 } 110 }
108 debug('Get appSettings resolves', resp.type, resp.data); 111 debug('Get appSettings resolves', resp.type, resp.data);
109 Object.assign(this._fileSystemSettingsCache[resp.type], resp.data); 112 Object.assign(this._fileSystemSettingsCache[resp.type], resp.data);