ssb: Consolidate the connection sidebar options. Three copies on-screen is too many.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 32m47s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 32m47s
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&CvV0TK1E0a2bOQSvieNbxsJg0JHeuDNWBsL+vEJLoKs=.sha256"
|
"previous": "&TLyYxmhqnHA1BlsJjFEOjCjShomGMA4Zpq3XADV7j6Q=.sha256"
|
||||||
}
|
}
|
||||||
|
@@ -211,35 +211,6 @@ class TfTabNewsElement extends LitElement {
|
|||||||
>
|
>
|
||||||
×
|
×
|
||||||
</div>
|
</div>
|
||||||
${this.is_administrator
|
|
||||||
? html`
|
|
||||||
<button
|
|
||||||
class="w3-bar-item w3-button"
|
|
||||||
@click=${() =>
|
|
||||||
this.dispatchEvent(
|
|
||||||
new Event('refresh', {bubbles: true, composed: true})
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<span style="display: inline-block; width: 1.8em">↻</span>
|
|
||||||
Sync now
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
class="w3-bar-item w3-button w3-ripple"
|
|
||||||
@click=${() =>
|
|
||||||
this.dispatchEvent(
|
|
||||||
new Event('toggle_stay_connected', {
|
|
||||||
bubbles: true,
|
|
||||||
composed: true,
|
|
||||||
})
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<span style="display: inline-block; width: 1.8em"
|
|
||||||
>${this.stay_connected ? '🔗' : '⛓️💥'}</span
|
|
||||||
>
|
|
||||||
${this.stay_connected ? 'Online mode' : 'Passive mode'}
|
|
||||||
</button>
|
|
||||||
`
|
|
||||||
: undefined}
|
|
||||||
${this.hash.startsWith('##') &&
|
${this.hash.startsWith('##') &&
|
||||||
this.channels.indexOf(this.hash.substring(2)) == -1
|
this.channels.indexOf(this.hash.substring(2)) == -1
|
||||||
? html`
|
? html`
|
||||||
@@ -334,6 +305,21 @@ class TfTabNewsElement extends LitElement {
|
|||||||
>
|
>
|
||||||
↻ Sync now
|
↻ Sync now
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
class="w3-bar-item w3-button w3-ripple"
|
||||||
|
@click=${() =>
|
||||||
|
this.dispatchEvent(
|
||||||
|
new Event('toggle_stay_connected', {
|
||||||
|
bubbles: true,
|
||||||
|
composed: true,
|
||||||
|
})
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<span style="display: inline-block; width: 1.8em"
|
||||||
|
>${this.stay_connected ? '🔗' : '⛓️💥'}</span
|
||||||
|
>
|
||||||
|
${this.stay_connected ? 'Online mode' : 'Passive mode'}
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
class=${'w3-bar-item w3-button' +
|
class=${'w3-bar-item w3-button' +
|
||||||
(this.peer_exchange !== false ? ' w3-hide' : '')}
|
(this.peer_exchange !== false ? ' w3-hide' : '')}
|
||||||
|
Reference in New Issue
Block a user