diff options
author | 2022-05-23 05:52:50 -0500 | |
---|---|---|
committer | 2022-05-23 10:52:50 +0000 | |
commit | ba2ac8d2c9ebb9b45325acf455bf7bf2995cdddf (patch) | |
tree | 51d72e5c62e4b32e72adb6647faf7216f69ab952 /src/containers/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/containers/settings')
-rw-r--r-- | src/containers/settings/EditServiceScreen.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/containers/settings/EditServiceScreen.js b/src/containers/settings/EditServiceScreen.js index 24b827993..db8602c10 100644 --- a/src/containers/settings/EditServiceScreen.js +++ b/src/containers/settings/EditServiceScreen.js | |||
@@ -85,6 +85,10 @@ const messages = defineMessages({ | |||
85 | id: 'settings.service.form.darkReaderSepia', | 85 | id: 'settings.service.form.darkReaderSepia', |
86 | defaultMessage: 'Dark Reader Sepia', | 86 | defaultMessage: 'Dark Reader Sepia', |
87 | }, | 87 | }, |
88 | trapLinkClicks: { | ||
89 | id: 'settings.service.form.trapLinkClicks', | ||
90 | defaultMessage: 'Open URLs within Ferdium', | ||
91 | }, | ||
88 | onlyShowFavoritesInUnreadCount: { | 92 | onlyShowFavoritesInUnreadCount: { |
89 | id: 'settings.service.form.onlyShowFavoritesInUnreadCount', | 93 | id: 'settings.service.form.onlyShowFavoritesInUnreadCount', |
90 | defaultMessage: 'Only show Favorites in unread count', | 94 | defaultMessage: 'Only show Favorites in unread count', |
@@ -198,6 +202,11 @@ class EditServiceScreen extends Component { | |||
198 | value: service.isBadgeEnabled, | 202 | value: service.isBadgeEnabled, |
199 | default: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, | 203 | default: DEFAULT_SERVICE_SETTINGS.isBadgeEnabled, |
200 | }, | 204 | }, |
205 | trapLinkClicks: { | ||
206 | label: intl.formatMessage(messages.trapLinkClicks), | ||
207 | value: service.trapLinkClicks, | ||
208 | default: DEFAULT_SERVICE_SETTINGS.trapLinkClicks, | ||
209 | }, | ||
201 | isMuted: { | 210 | isMuted: { |
202 | label: intl.formatMessage(messages.enableAudio), | 211 | label: intl.formatMessage(messages.enableAudio), |
203 | value: !service.isMuted, | 212 | value: !service.isMuted, |