diff --git a/apps/ssb.json b/apps/ssb.json index fb3da05d..c4846f48 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&jAAzd36Nmpw0sRA1Dx9wLiIwGX+q//+S/Han+RLlEOw=.sha256" + "previous": "&Qae0CxJGEH7OspuapuXX/GurmV+VBtQiMhHRmCBKCwU=.sha256" } diff --git a/apps/ssb/tf-tab-connections.js b/apps/ssb/tf-tab-connections.js index 8769ae67..43f257dc 100644 --- a/apps/ssb/tf-tab-connections.js +++ b/apps/ssb/tf-tab-connections.js @@ -206,6 +206,23 @@ class TfTabConnectionsElement extends LitElement { }); } + toggle_accordian(id) { + let element = this.renderRoot.getElementById(id); + element.classList.toggle('w3-hide'); + } + + valid_connections() { + return this.connections.filter((x) => x.tunnel === undefined); + } + + valid_broadcasts() { + return this.broadcasts + .filter((x) => x.address) + .filter( + (x) => this.connections.map((c) => c.id).indexOf(x.pubkey) == -1 + ); + } + render() { let self = this; return html` @@ -220,27 +237,21 @@ class TfTabConnectionsElement extends LitElement { > Connect -