diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.jsx | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.jsx b/src/components/settings/settings/EditSettingsForm.jsx index 4ae431adb..e77f1b25b 100644 --- a/src/components/settings/settings/EditSettingsForm.jsx +++ b/src/components/settings/settings/EditSettingsForm.jsx | |||
@@ -30,7 +30,7 @@ import { | |||
30 | userDataPath, | 30 | userDataPath, |
31 | userDataRecipesPath, | 31 | userDataRecipesPath, |
32 | } from '../../../environment-remote'; | 32 | } from '../../../environment-remote'; |
33 | import { openPath } from '../../../helpers/url-helpers'; | 33 | import { openExternalUrl, openPath } from '../../../helpers/url-helpers'; |
34 | import globalMessages from '../../../i18n/globalMessages'; | 34 | import globalMessages from '../../../i18n/globalMessages'; |
35 | import Icon from '../../ui/icon'; | 35 | import Icon from '../../ui/icon'; |
36 | import Slider from '../../ui/Slider'; | 36 | import Slider from '../../ui/Slider'; |
@@ -197,6 +197,14 @@ const messages = defineMessages({ | |||
197 | id: 'settings.app.buttonOpenFerdiumServiceRecipesFolder', | 197 | id: 'settings.app.buttonOpenFerdiumServiceRecipesFolder', |
198 | defaultMessage: 'Open Service Recipes folder', | 198 | defaultMessage: 'Open Service Recipes folder', |
199 | }, | 199 | }, |
200 | buttonOpenImportExport: { | ||
201 | id: 'settings.app.buttonOpenImportExport', | ||
202 | defaultMessage: 'Import / Export', | ||
203 | }, | ||
204 | serverHelp: { | ||
205 | id: 'settings.app.serverHelp', | ||
206 | defaultMessage: 'Connected to server at {serverURL}', | ||
207 | }, | ||
200 | buttonSearchForUpdate: { | 208 | buttonSearchForUpdate: { |
201 | id: 'settings.app.buttonSearchForUpdate', | 209 | id: 'settings.app.buttonSearchForUpdate', |
202 | defaultMessage: 'Check for updates', | 210 | defaultMessage: 'Check for updates', |
@@ -274,6 +282,7 @@ class EditSettingsForm extends Component { | |||
274 | openProcessManager: PropTypes.func.isRequired, | 282 | openProcessManager: PropTypes.func.isRequired, |
275 | isSplitModeEnabled: PropTypes.bool.isRequired, | 283 | isSplitModeEnabled: PropTypes.bool.isRequired, |
276 | isOnline: PropTypes.bool.isRequired, | 284 | isOnline: PropTypes.bool.isRequired, |
285 | serverURL: PropTypes.string.isRequired, | ||
277 | }; | 286 | }; |
278 | 287 | ||
279 | constructor(props) { | 288 | constructor(props) { |
@@ -336,6 +345,7 @@ class EditSettingsForm extends Component { | |||
336 | openProcessManager, | 345 | openProcessManager, |
337 | isTodosActivated, | 346 | isTodosActivated, |
338 | isOnline, | 347 | isOnline, |
348 | serverURL, | ||
339 | } = this.props; | 349 | } = this.props; |
340 | const { intl } = this.props; | 350 | const { intl } = this.props; |
341 | 351 | ||
@@ -939,8 +949,21 @@ class EditSettingsForm extends Component { | |||
939 | className="settings__open-settings-file-button" | 949 | className="settings__open-settings-file-button" |
940 | onClick={() => openPath(recipeFolder)} | 950 | onClick={() => openPath(recipeFolder)} |
941 | /> | 951 | /> |
952 | <Button | ||
953 | buttonType="secondary" | ||
954 | label={intl.formatMessage( | ||
955 | messages.buttonOpenImportExport, | ||
956 | )} | ||
957 | className="settings__open-settings-file-button" | ||
958 | onClick={() => openExternalUrl(serverURL, true)} | ||
959 | /> | ||
942 | </div> | 960 | </div> |
943 | </p> | 961 | </p> |
962 | <p className="settings__help"> | ||
963 | {intl.formatMessage(messages.serverHelp, { | ||
964 | serverURL, | ||
965 | })} | ||
966 | </p> | ||
944 | </div> | 967 | </div> |
945 | </div> | 968 | </div> |
946 | )} | 969 | )} |