forked from btclock/webui
Add Nostr relay connection status
This commit is contained in:
parent
ee4d6d88c7
commit
f08e977b61
6 changed files with 338 additions and 325 deletions
|
@ -124,6 +124,8 @@
|
|||
});
|
||||
|
||||
function compareVersions(version1: string, version2: string): number {
|
||||
if (!version2) return 0;
|
||||
|
||||
const parts1 = version1.split('.').map((part) => parseInt(part, 10));
|
||||
const parts2 = version2.split('.').map((part) => parseInt(part, 10));
|
||||
|
||||
|
|
|
@ -166,11 +166,18 @@
|
|||
<br />
|
||||
<p>
|
||||
{#if $settings.useNostr}
|
||||
<span>Nostr connection status not available yet.</span>
|
||||
{$_('section.status.nostrConnection')}:
|
||||
<span>
|
||||
{#if $status.connectionStatus && $status.connectionStatus.nostr}
|
||||
✅
|
||||
{:else}
|
||||
❌
|
||||
{/if}
|
||||
</span>
|
||||
{:else if !$settings.ownDataSource}
|
||||
{$_('section.status.wsPriceConnection')}:
|
||||
<span>
|
||||
{#if $status.connectionStatus && $status.connectionStatus.price}
|
||||
{#if $status.connectionStatus && $status.connectionStatus.nostr}
|
||||
✅
|
||||
{:else}
|
||||
❌
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue