diff options
author | 2019-08-22 11:04:50 +0200 | |
---|---|---|
committer | 2019-08-22 11:04:50 +0200 | |
commit | 8440d51cef61297eb34a193d6a3ad420a0947340 (patch) | |
tree | c92b9f96dbcc570ddcfbd595c9dca97421b74ea9 /src/containers/settings/EditSettingsScreen.js | |
parent | Add development info to README (diff) | |
download | ferdium-app-8440d51cef61297eb34a193d6a3ad420a0947340.tar.gz ferdium-app-8440d51cef61297eb34a193d6a3ad420a0947340.tar.zst ferdium-app-8440d51cef61297eb34a193d6a3ad420a0947340.zip |
Add support to use custom servers
Diffstat (limited to 'src/containers/settings/EditSettingsScreen.js')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 2b9626952..8059ee22d 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -16,6 +16,8 @@ import { getSelectOptions } from '../../helpers/i18n-helpers'; | |||
16 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; | 16 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; |
17 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 17 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
18 | 18 | ||
19 | import { API } from '../../environment'; | ||
20 | |||
19 | import globalMessages from '../../i18n/globalMessages'; | 21 | import globalMessages from '../../i18n/globalMessages'; |
20 | 22 | ||
21 | const messages = defineMessages({ | 23 | const messages = defineMessages({ |
@@ -88,6 +90,7 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
88 | runInBackground: settingsData.runInBackground, | 90 | runInBackground: settingsData.runInBackground, |
89 | enableSystemTray: settingsData.enableSystemTray, | 91 | enableSystemTray: settingsData.enableSystemTray, |
90 | minimizeToSystemTray: settingsData.minimizeToSystemTray, | 92 | minimizeToSystemTray: settingsData.minimizeToSystemTray, |
93 | server: settingsData.server, | ||
91 | enableGPUAcceleration: settingsData.enableGPUAcceleration, | 94 | enableGPUAcceleration: settingsData.enableGPUAcceleration, |
92 | showDisabledServices: settingsData.showDisabledServices, | 95 | showDisabledServices: settingsData.showDisabledServices, |
93 | darkMode: settingsData.darkMode, | 96 | darkMode: settingsData.darkMode, |
@@ -147,6 +150,11 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
147 | value: settings.all.app.minimizeToSystemTray, | 150 | value: settings.all.app.minimizeToSystemTray, |
148 | default: DEFAULT_APP_SETTINGS.minimizeToSystemTray, | 151 | default: DEFAULT_APP_SETTINGS.minimizeToSystemTray, |
149 | }, | 152 | }, |
153 | server: { | ||
154 | label: 'Server', | ||
155 | value: settings.all.app.server || API, | ||
156 | default: API | ||
157 | }, | ||
150 | showDisabledServices: { | 158 | showDisabledServices: { |
151 | label: intl.formatMessage(messages.showDisabledServices), | 159 | label: intl.formatMessage(messages.showDisabledServices), |
152 | value: settings.all.app.showDisabledServices, | 160 | value: settings.all.app.showDisabledServices, |