move monero settings to dedicated /monero/settings page
- Create /monero/settings route with Restart Server and Save password with Touch ID - Remove inline Settings card from monero dashboard - Add Settings icon button (same as EVM) to monero wallet card - Remove unused moneroSettingsPw state from dashboard
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
import ArrowDown from '@lucide/svelte/icons/arrow-down'
|
||||
import ArrowUp from '@lucide/svelte/icons/arrow-up'
|
||||
import Fingerprint from '@lucide/svelte/icons/fingerprint'
|
||||
import SettingsIcon from '@lucide/svelte/icons/settings'
|
||||
import Loader from '$lib/components/loader.svelte'
|
||||
import { navigate } from 'sv-router/generated'
|
||||
|
||||
@@ -25,7 +26,6 @@
|
||||
let moneroSelectedWallet = $state('')
|
||||
let moneroSelectedWalletPass = $state('')
|
||||
let moneroUseBiometric = $state(false)
|
||||
let moneroSettingsPw = $state('')
|
||||
|
||||
let initStarted = false
|
||||
$effect(() => {
|
||||
@@ -237,8 +237,8 @@
|
||||
{/if}
|
||||
Refresh
|
||||
</Button>
|
||||
<Button variant="outline" onclick={() => w.moneroStop()}>
|
||||
Stop
|
||||
<Button variant="outline" onclick={() => navigate('/monero/settings')}>
|
||||
<SettingsIcon size={16} />
|
||||
</Button>
|
||||
<Button variant="outline" onclick={async () => { await w.logout(); window.location.href = '/' }}>
|
||||
Logout
|
||||
@@ -247,29 +247,6 @@
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<!-- Monero settings -->
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>Settings</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
{#if w.biometricAvailable}
|
||||
<p class="text-xs font-medium mb-2">Save wallet password with Touch ID</p>
|
||||
<p class="text-xs text-muted-foreground mb-3">Enter your wallet password to enable biometric unlock</p>
|
||||
<div class="flex gap-2 items-end">
|
||||
<Input type="password" placeholder="Wallet password" bind:value={moneroSettingsPw} />
|
||||
<Button size="sm" onclick={async () => {
|
||||
await w.moneroStorePassword(w.moneroWalletName, moneroSettingsPw)
|
||||
moneroSettingsPw = ''
|
||||
w.error = ''
|
||||
}} disabled={!moneroSettingsPw || w.loading}>Save</Button>
|
||||
</div>
|
||||
{:else}
|
||||
<p class="text-xs text-muted-foreground">Biometric authentication not available on this device</p>
|
||||
{/if}
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
<!-- Monero transactions -->
|
||||
<Card>
|
||||
<CardHeader>
|
||||
|
||||
Reference in New Issue
Block a user