diff options
author | vantezzen <hello@vantezzen.io> | 2020-03-02 10:05:58 +0100 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-03-02 10:05:58 +0100 |
commit | 581663761d44d91bf00a96956823b92d354d2bf1 (patch) | |
tree | 5cf1a189445d1d83aa83418b134d0201beb0354c /src/stores/SettingsStore.js | |
parent | Add "Open Link in Ferdi" to context menu (diff) | |
download | ferdium-app-581663761d44d91bf00a96956823b92d354d2bf1.tar.gz ferdium-app-581663761d44d91bf00a96956823b92d354d2bf1.tar.zst ferdium-app-581663761d44d91bf00a96956823b92d354d2bf1.zip |
Run linter
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r-- | src/stores/SettingsStore.js | 7 |
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 @@ | |||
1 | import { ipcRenderer, remote } from 'electron'; | 1 | import { ipcRenderer, remote } from 'electron'; |
2 | import { action, computed, observable, reaction } from 'mobx'; | 2 | import { |
3 | action, computed, observable, reaction, | ||
4 | } from 'mobx'; | ||
3 | import localStorage from 'mobx-localstorage'; | 5 | import localStorage from 'mobx-localstorage'; |
4 | import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER } from '../config'; | 6 | import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER } from '../config'; |
5 | import { API } from '../environment'; | 7 | import { API } from '../environment'; |
@@ -12,6 +14,7 @@ const debug = require('debug')('Ferdi:SettingsStore'); | |||
12 | 14 | ||
13 | export default class SettingsStore extends Store { | 15 | export 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); |