ssb: Don't show connections in various states of disconnectedness in the sidebar.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 22m24s

This commit is contained in:
2025-01-20 16:57:22 -05:00
parent fba465dd62
commit 15be498e4b
2 changed files with 13 additions and 11 deletions

View File

@ -216,16 +216,18 @@ class TfTabNewsElement extends LitElement {
)}
<h4 class="w3-bar-item w3-theme-d2">Connections</h4>
${this.connections.map(
(x) => html`
<tf-user
class="w3-bar-item"
style="max-width: 100%"
id=${x.id}
.users=${this.users}
></tf-user>
`
)}
${this.connections
.filter((x) => x.id && !x.destroy_reason)
.map(
(x) => html`
<tf-user
class="w3-bar-item"
style="max-width: 100%"
id=${x.id}
.users=${this.users}
></tf-user>
`
)}
<h4 class="w3-bar-item w3-theme-d2">Suggested Follows</h4>
${this.suggested_follows().map(
(x) => html`