Skip to content

Commit

Permalink
Hide client stability when extension is Off (#171)
Browse files Browse the repository at this point in the history
Hides connection stability text when the extension is off but the client
is On with an Unstable or NoSignal connection

![Screenshot 2024-12-23
101146](https://github.com/user-attachments/assets/48cd6ae9-b896-44ad-9bd4-421e2535d7cc)
  • Loading branch information
lesleyjanenorton authored Dec 23, 2024
1 parent 40e326d commit d62f925
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/vpncard.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export class VPNCard extends LitElement {
${VPNCard.subline(
this.enabled,
this.stability,
this.connecting,
this.clientConnected
)}
${timeString}
Expand Down Expand Up @@ -203,6 +204,9 @@ export class VPNCard extends LitElement {
</svg>
`;

if (!enabled) {
return;
}
switch (stability) {
case VPNState.NoSignal:
return html`<p class="subline">${errorSvg} No Signal</p>`;
Expand Down

0 comments on commit d62f925

Please sign in to comment.