diff options
author | 2022-05-23 05:52:50 -0500 | |
---|---|---|
committer | 2022-05-23 10:52:50 +0000 | |
commit | ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf (patch) | |
tree | 51d72e5c62e4b32e72adb6647faf7216f69ab952 /src/components/settings | |
parent | 6.0.0-nightly.44 [skip ci] (diff) | |
download | ferdium-app-ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf.tar.gz ferdium-app-ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf.tar.zst ferdium-app-ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf.zip |
Add new service-level option 'trapLinkUrls' (#154)
This option can be used to allow the user to choose how to handle links
(whether to open in the default browser or within the Ferdium service itself)
Co-authored-by: André Oliveira <oliveira.andrerodrigues95@gmail.com>
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index 42e21dbc8..e426d2d73 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -108,6 +108,10 @@ const messages = defineMessages({ | |||
108 | id: 'settings.service.form.headlineGeneral', | 108 | id: 'settings.service.form.headlineGeneral', |
109 | defaultMessage: 'General', | 109 | defaultMessage: 'General', |
110 | }, | 110 | }, |
111 | headlineAppearance: { | ||
112 | id: 'settings.service.form.headlineAppearance', | ||
113 | defaultMessage: 'Appearance', | ||
114 | }, | ||
111 | headlineDarkReaderSettings: { | 115 | headlineDarkReaderSettings: { |
112 | id: 'settings.service.form.headlineDarkReaderSettings', | 116 | id: 'settings.service.form.headlineDarkReaderSettings', |
113 | defaultMessage: 'Dark Reader Settings', | 117 | defaultMessage: 'Dark Reader Settings', |
@@ -133,6 +137,10 @@ const messages = defineMessages({ | |||
133 | defaultMessage: | 137 | defaultMessage: |
134 | 'Proxy settings will not be synchronized with the Ferdium servers.', | 138 | 'Proxy settings will not be synchronized with the Ferdium servers.', |
135 | }, | 139 | }, |
140 | serviceReloadRequired: { | ||
141 | id: 'settings.service.reloadRequired', | ||
142 | defaultMessage: 'Changes require reload of the service', | ||
143 | }, | ||
136 | }); | 144 | }); |
137 | 145 | ||
138 | class EditServiceForm extends Component { | 146 | class EditServiceForm extends Component { |
@@ -360,6 +368,15 @@ class EditServiceForm extends Component { | |||
360 | {intl.formatMessage(messages.isHibernationEnabledInfo)} | 368 | {intl.formatMessage(messages.isHibernationEnabledInfo)} |
361 | </p> | 369 | </p> |
362 | <Toggle field={form.$('isWakeUpEnabled')} /> | 370 | <Toggle field={form.$('isWakeUpEnabled')} /> |
371 | <Toggle field={form.$('trapLinkClicks')} /> | ||
372 | {/* TODO: Need to figure out how to effect this change without a reload of the recipe */} | ||
373 | <p className="settings__help indented__help"> | ||
374 | {intl.formatMessage(messages.serviceReloadRequired)} | ||
375 | </p> | ||
376 | </div> | ||
377 | |||
378 | <div className="settings__settings-group"> | ||
379 | <H3>{intl.formatMessage(messages.headlineAppearance)}</H3> | ||
363 | <Toggle field={form.$('isDarkModeEnabled')} /> | 380 | <Toggle field={form.$('isDarkModeEnabled')} /> |
364 | {form.$('isDarkModeEnabled').value && ( | 381 | {form.$('isDarkModeEnabled').value && ( |
365 | <> | 382 | <> |