fix dashboard monero infinite loading loop
This commit is contained in:
@@ -123,17 +123,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$effect(() => {
|
|
||||||
if (
|
|
||||||
moneroWallet.ready &&
|
|
||||||
!moneroWallet.walletOpen &&
|
|
||||||
!moneroWallet.opening &&
|
|
||||||
!moneroWallet.passwordRequired
|
|
||||||
) {
|
|
||||||
moneroWallet.login()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
const handler = (event: ErrorEvent) => {
|
const handler = (event: ErrorEvent) => {
|
||||||
@@ -263,15 +252,12 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{:else if moneroWallet.passwordRequired && moneroWallet.wallets.length > 0}
|
{:else if moneroWallet.passwordRequired && moneroWallet.wallets.length > 0}
|
||||||
<p class="text-sm text-muted-foreground py-3">Wallet locked — unlock to view balance</p>
|
<p class="text-sm text-muted-foreground py-3">Wallet locked — unlock to view balance</p>
|
||||||
{:else if moneroWallet.wallets.length > 0}
|
|
||||||
<div class="h-14 flex items-center gap-2">
|
|
||||||
<Loader />
|
|
||||||
<p class="text-sm text-muted-foreground">Opening wallet...</p>
|
|
||||||
</div>
|
|
||||||
{:else if moneroWallet.opening}
|
{:else if moneroWallet.opening}
|
||||||
<div class="h-14 flex items-center gap-2">
|
<div class="h-14 flex items-center gap-2">
|
||||||
<Loader />
|
<Loader />
|
||||||
<p class="text-sm text-muted-foreground">Starting wallet server...</p>
|
<p class="text-sm text-muted-foreground">
|
||||||
|
{moneroWallet.wallets.length > 0 ? 'Opening wallet...' : 'Starting wallet server...'}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{:else if moneroWallet.error}
|
{:else if moneroWallet.error}
|
||||||
<div class="py-3">
|
<div class="py-3">
|
||||||
@@ -284,6 +270,11 @@
|
|||||||
Retry
|
Retry
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
{:else if moneroWallet.wallets.length > 0}
|
||||||
|
<div class="h-14 flex items-center gap-2">
|
||||||
|
<Loader />
|
||||||
|
<p class="text-sm text-muted-foreground">Opening wallet...</p>
|
||||||
|
</div>
|
||||||
{:else if loadingXmr}
|
{:else if loadingXmr}
|
||||||
<div class="h-14 flex items-center"><Loader /></div>
|
<div class="h-14 flex items-center"><Loader /></div>
|
||||||
{:else}
|
{:else}
|
||||||
|
|||||||
Reference in New Issue
Block a user