Skip to content

Commit

Permalink
Use new strings and remove subline when VPN is off (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyjanenorton authored Sep 24, 2024
1 parent c0799cf commit c7ad565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,12 @@
"message": "Reset site preferences",
"description": "Button Text to Reset all Site specific settings"
},
"turnOnForPrivateConnection": {
"message": "Turn on to protect your browser",
"description": "Call to Action for users to turn on the VPN"
},
"vpnIsOn": {
"message": "VPN is On",
"message": "VPN protection for Firefox is on",
"description": "Header to signal that VPN connection is enabled"
},
"vpnIsOff": {
"message": "VPN is Off",
"message": "VPN protection for Firefox is off",
"description": "Header to signal that VPN connection is disabled"
},
"vpnOffStatus": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/vpncard.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class VPNCard extends LitElement {

static subline(enabled, stability) {
if (!enabled) {
return html`<p class="subline">${tr("turnOnForPrivateConnection")}</p>`;
return null;
}
const errorSvg = html`
<svg>
Expand Down

0 comments on commit c7ad565

Please sign in to comment.