diff options
author | 2019-09-07 18:15:59 +0200 | |
---|---|---|
committer | 2019-09-07 18:15:59 +0200 | |
commit | 87acd45d1fc6d4b97c12b2044b755b4fc1f1dc33 (patch) | |
tree | 070cc64b4900c468e1d6409c0dc2b048cd54eaef /src/containers | |
parent | Fix lint (diff) | |
download | ferdium-app-87acd45d1fc6d4b97c12b2044b755b4fc1f1dc33.tar.gz ferdium-app-87acd45d1fc6d4b97c12b2044b755b4fc1f1dc33.tar.zst ferdium-app-87acd45d1fc6d4b97c12b2044b755b4fc1f1dc33.zip |
Make todo server editable
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/settings/EditSettingsScreen.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/containers/settings/EditSettingsScreen.js b/src/containers/settings/EditSettingsScreen.js index 954f64dc6..d03b01539 100644 --- a/src/containers/settings/EditSettingsScreen.js +++ b/src/containers/settings/EditSettingsScreen.js | |||
@@ -17,7 +17,7 @@ import { getSelectOptions } from '../../helpers/i18n-helpers'; | |||
17 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; | 17 | import EditSettingsForm from '../../components/settings/settings/EditSettingsForm'; |
18 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 18 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
19 | 19 | ||
20 | import { API } from '../../environment'; | 20 | import { API, TODOS_FRONTEND } from '../../environment'; |
21 | 21 | ||
22 | import globalMessages from '../../i18n/globalMessages'; | 22 | import globalMessages from '../../i18n/globalMessages'; |
23 | import { DEFAULT_IS_FEATURE_ENABLED_BY_USER } from '../../features/todos'; | 23 | import { DEFAULT_IS_FEATURE_ENABLED_BY_USER } from '../../features/todos'; |
@@ -47,6 +47,10 @@ const messages = defineMessages({ | |||
47 | id: 'settings.app.form.server', | 47 | id: 'settings.app.form.server', |
48 | defaultMessage: '!!!Server', | 48 | defaultMessage: '!!!Server', |
49 | }, | 49 | }, |
50 | todoServer: { | ||
51 | id: 'settings.app.form.todoServer', | ||
52 | defaultMessage: '!!!Todo Server', | ||
53 | }, | ||
50 | language: { | 54 | language: { |
51 | id: 'settings.app.form.language', | 55 | id: 'settings.app.form.language', |
52 | defaultMessage: '!!!Language', | 56 | defaultMessage: '!!!Language', |
@@ -107,6 +111,7 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
107 | enableSystemTray: settingsData.enableSystemTray, | 111 | enableSystemTray: settingsData.enableSystemTray, |
108 | minimizeToSystemTray: settingsData.minimizeToSystemTray, | 112 | minimizeToSystemTray: settingsData.minimizeToSystemTray, |
109 | server: settingsData.server, | 113 | server: settingsData.server, |
114 | todoServer: settingsData.todoServer, | ||
110 | enableGPUAcceleration: settingsData.enableGPUAcceleration, | 115 | enableGPUAcceleration: settingsData.enableGPUAcceleration, |
111 | showDisabledServices: settingsData.showDisabledServices, | 116 | showDisabledServices: settingsData.showDisabledServices, |
112 | darkMode: settingsData.darkMode, | 117 | darkMode: settingsData.darkMode, |
@@ -177,6 +182,11 @@ export default @inject('stores', 'actions') @observer class EditSettingsScreen e | |||
177 | value: settings.all.app.server || API, | 182 | value: settings.all.app.server || API, |
178 | default: API, | 183 | default: API, |
179 | }, | 184 | }, |
185 | todoServer: { | ||
186 | label: intl.formatMessage(messages.todoServer), | ||
187 | value: settings.all.app.todoServer || TODOS_FRONTEND, | ||
188 | default: TODOS_FRONTEND, | ||
189 | }, | ||
180 | showDisabledServices: { | 190 | showDisabledServices: { |
181 | label: intl.formatMessage(messages.showDisabledServices), | 191 | label: intl.formatMessage(messages.showDisabledServices), |
182 | value: settings.all.app.showDisabledServices, | 192 | value: settings.all.app.showDisabledServices, |