ssb: Move the refresh/sync button to the navigation bar as an experiment.

This commit is contained in:
2024-11-23 16:49:33 -05:00
parent f9ec796291
commit b6bfdec48d
3 changed files with 12 additions and 14 deletions

View File

@ -178,10 +178,6 @@ class TfTabConnectionsElement extends LitElement {
`;
}
refresh() {
tfrpc.rpc.sync();
}
connect(address) {
let self = this;
self.connect_attempt = address;
@ -207,12 +203,6 @@ class TfTabConnectionsElement extends LitElement {
let self = this;
return html`
<div class="w3-container" style="box-sizing: border-box">
<button
class="w3-button w3-theme-l3 w3-circle w3-ripple w3-large"
@click=${this.refresh}
>
</button>
<h2>New Connection</h2>
<textarea class="w3-input w3-theme-d1" id="code"></textarea>
${this.render_message(this.renderRoot.getElementById('code')?.value)}
@ -227,9 +217,7 @@ class TfTabConnectionsElement extends LitElement {
<ul class="w3-ul w3-border">
${this.broadcasts
.filter((x) => x.address)
.filter(
(x) => self.connections.map((c) => c.id).indexOf(x.pubkey) == -1
)
.filter((x) => self.connections.map(c => c.id).indexOf(x.pubkey) == -1)
.map((x) => self.render_broadcast(x))}
</ul>
<h2>Connections</h2>