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:
Cory McWilliams 2025-01-20 16:57:22 -05:00
parent fba465dd62
commit 15be498e4b
2 changed files with 13 additions and 11 deletions

View File

@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&J6o2XRWWAirhnQbEa6Pi0QvAex6jTH1o23npX7x82aY=.sha256" "previous": "&ZKixAk7qZ3OfnjvCoyT1MC7qYVpUz0ngaAozr11xihs=.sha256"
} }

View File

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