Skip to content

Commit fdfbaf4

Browse files
committed
style(browserAction): rename global redirect toggle
Following suggestion from #647 (comment)
1 parent bf9a69e commit fdfbaf4

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

add-on/_locales/en/messages.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
"message": "Open Preferences of Browser Extension",
4848
"description": "A menu item in Browser Action pop-up (panel_openPreferences)"
4949
},
50-
"panel_switchToCustomGateway": {
51-
"message": "Switch to Custom Gateway",
52-
"description": "A menu item in Browser Action pop-up (panel_switchToCustomGateway)"
50+
"panel_globalRedirectEnable": {
51+
"message": "Enable Gateway Redirect",
52+
"description": "A menu item in Browser Action pop-up (panel_globalRedirectEnable)"
5353
},
54-
"panel_switchToPublicGateway": {
55-
"message": "Switch to Public Gateway",
56-
"description": "A menu item in Browser Action pop-up (panel_switchToPublicGateway)"
54+
"panel_globalRedirectDisable": {
55+
"message": "Disable Gateway Redirect",
56+
"description": "A menu item in Browser Action pop-up (panel_globalRedirectDisable)"
5757
},
5858
"panel_pinCurrentIpfsAddress": {
5959
"message": "Pin IPFS Resource",

add-on/src/popup/browser-action/operations.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ module.exports = function operations ({
2727
disabled: !activeQuickUpload,
2828
onClick: onQuickUpload
2929
})}
30+
${navItem({
31+
text: browser.i18n.getMessage('panel_openWebui'),
32+
disabled: !activeWebUI,
33+
onClick: onOpenWebUi
34+
})}
3035
${navItem({
3136
text: browser.i18n.getMessage(
3237
redirectEnabled && activeGatewaySwitch
33-
? 'panel_switchToPublicGateway'
34-
: 'panel_switchToCustomGateway'
38+
? 'panel_globalRedirectDisable'
39+
: 'panel_globalRedirectEnable'
3540
),
3641
disabled: !activeGatewaySwitch,
3742
onClick: onToggleRedirect
38-
})}
39-
${navItem({
40-
text: browser.i18n.getMessage('panel_openWebui'),
41-
disabled: !activeWebUI,
42-
onClick: onOpenWebUi
4343
})}
4444
</div>
4545
`

0 commit comments

Comments
 (0)