Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Automatic Mode Description #1224

Merged
merged 3 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion add-on/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,13 @@
"description": "An option title on the Preferences screen (option_automaticMode_title)"
},
"option_automaticMode_description": {
"message": "Automatically switch from your local gateway to your default public gateway if the Kubo RPC is unavailable.",
"message": "Automatically redirect to your local gateway when the Kubo RPC endpoint is available.",
"description": "An option description on the Preferences screen (option_automaticMode_description)"
},
"option_automaticMode_description_subtext": {
"message": "Disabling this still triggers redirects even if the Kubo RPC endpoint is unavailable. The automatic mode only validates the availability of a local gateway based on Kubo RPC endpoint availability and automatically redirects to the local gateway when available.",
"description": "An automatic mode option description on the Preferences screen (option_automaticMode_description_subtext)"
},
"option_header_dnslink": {
"message": "DNSLink",
"description": "A section header on the Preferences screen (option_header_dnslink)"
Expand Down
1 change: 1 addition & 0 deletions add-on/src/options/forms/api-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default function apiForm ({ ipfsNodeType, ipfsApiUrl, ipfsApiPollMs, auto
<dl>
<dt>${browser.i18n.getMessage('option_automaticMode_title')}</dt>
<dd>${browser.i18n.getMessage('option_automaticMode_description')}</dd>
<p class="red i">${browser.i18n.getMessage('option_automaticMode_description_subtext')}</p>
</dl>
</label>
<div class="self-center-ns">${switchToggle({ id: 'automaticMode', checked: automaticMode, onchange: onAutomaticModeChange })}</div>
Expand Down