ssb: Fix trying to connect to the same stored connection over and over.

This commit is contained in:
2025-01-11 12:32:18 -05:00
parent e59a00922b
commit 17eba059f0
4 changed files with 16 additions and 10 deletions

View File

@ -142,12 +142,15 @@ class TfTabConnectionsElement extends LitElement {
}, {})
);
return html`
<button
class="w3-button w3-theme-d1"
@click=${() => tfrpc.rpc.closeConnection(connection.id)}
>
Close
</button>
${connection.connected ? html`
<button
class="w3-button w3-theme-d1"
@click=${() => tfrpc.rpc.closeConnection(connection.id)}
>
Close
</button>
`
: undefined}
${connection.flags.one_shot ? '🔃' : undefined}
<tf-user id=${connection.id} .users=${this.users}></tf-user>
${connection.tunnel !== undefined