From 97528d65d6956e9cd07b0624508d4be0f9df3fee Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Sun, 24 Nov 2024 09:37:33 -0500 Subject: [PATCH] link visibility of passphrase inputs on EnterPassphrase page --- src/ui/PassphraseInput.svelte | 2 +- src/views/passphrase/EnterPassphrase.svelte | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/PassphraseInput.svelte b/src/ui/PassphraseInput.svelte index 9c3c0d1..5923f63 100644 --- a/src/ui/PassphraseInput.svelte +++ b/src/ui/PassphraseInput.svelte @@ -4,10 +4,10 @@ export let value = ''; export let placeholder = ''; export let autofocus = false; + export let show = false; let classes = ''; export {classes as class}; - let show = false; let input; export function focus() { diff --git a/src/views/passphrase/EnterPassphrase.svelte b/src/views/passphrase/EnterPassphrase.svelte index ddb615e..03fc2d6 100644 --- a/src/views/passphrase/EnterPassphrase.svelte +++ b/src/views/passphrase/EnterPassphrase.svelte @@ -14,6 +14,7 @@ const dispatch = createEventDispatcher(); + let showPassphrase = false; let alert; let saving = false; let passphrase = ''; @@ -52,7 +53,6 @@ try { await alert.run(async () => { await invoke('set_passphrase', {passphrase}) - throw('something bad happened'); $appState.sessionStatus = 'unlocked'; dispatch('save'); }); @@ -73,6 +73,7 @@ @@ -84,6 +85,7 @@