From c9050264a548d2ffcdf61e4e0b3617e0bd0f4998 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 16 Mar 2026 17:54:52 -0400 Subject: [PATCH] fix: hide passcode input after successful validation When a passcode matched, entered_passcode was cleared and the trigger was set, but show_passcode_input was never set to false. This left the input visible so users could keep typing after access was granted. Set show_passcode_input = false immediately after clearing entered_passcode on a successful match, consistent with the intent described in the handle_clear_access() function which resets it to true on clear. --- .../app_components/e_app_access_type.svelte | 37 ++++++------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/src/lib/app_components/e_app_access_type.svelte b/src/lib/app_components/e_app_access_type.svelte index dcbee253..a74fb969 100644 --- a/src/lib/app_components/e_app_access_type.svelte +++ b/src/lib/app_components/e_app_access_type.svelte @@ -5,15 +5,7 @@ // *** Import other supporting libraries // import { liveQuery } from "dexie"; - import { - ShieldEllipsis, - ShieldMinus, - ShieldPlus, - ShieldUser, - User, - UserCheck - } from '@lucide/svelte'; - + import { Lock, LockOpen, RefreshCw, ShieldEllipsis, ShieldMinus, ShieldPlus, ShieldUser, Unlink, User, UserCheck, UserRound, Wand2 } from '@lucide/svelte'; // *** Import Aether specific variables and functions import { ae_util } from '$lib/ae_utils/ae_utils'; import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/stores/ae_stores'; @@ -240,6 +232,7 @@ } entered_passcode = ''; + show_passcode_input = false; trigger = 'process_permission_check'; $ae_loc.app_cfg.show_element__menu = false; @@ -359,7 +352,7 @@ class="btn btn-sm preset-tonal-success border border-success-500 hover:preset-filled-success-500 transition-all hover:transition-all *:hover:inline" title="Syncing the local configuration with the remote configuration." > - + {:else} @@ -379,7 +372,7 @@ class="btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition-all hover:transition-all *:hover:inline" title="Currently not syncing with the remote server. Re-sync the local configuration with the remote configuration?" > - + {/if} @@ -431,12 +424,12 @@ title={show_passcode_input ? 'Cancel passcode entry' : 'Enter a passcode to unlock access'} > {#if show_passcode_input} - + Cancel {:else} - + Locked - +