diff --git a/src/lib/ae_stores.ts b/src/lib/ae_stores.ts index d5b95170..5a74997c 100644 --- a/src/lib/ae_stores.ts +++ b/src/lib/ae_stores.ts @@ -149,7 +149,7 @@ export let ae_app_local_data_struct: key_val = { show_element__header: false, show_element__footer: false, show_element__menu: false, - show_element__menu_btn: false, + show_element__menu_btn: true, show_element__access_type: true, show_element__cfg: true, diff --git a/src/lib/element_access_type.svelte b/src/lib/element_access_type.svelte index 33756d66..aae29ac4 100644 --- a/src/lib/element_access_type.svelte +++ b/src/lib/element_access_type.svelte @@ -20,19 +20,21 @@ import { events_loc } from '$lib/ae_events_stores'; interface Props { log_lvl?: number; // data?: any; + show_passcode_input: boolean; hidden: null|boolean; } let { log_lvl = 0, // data = null, + show_passcode_input = false, hidden = true, }: Props = $props(); let entered_passcode: null|string = $state(null); // let entered_passcode: null|string = ''; -let show_passcode_input: boolean = $state(false); +// let show_passcode_input: boolean = $state(false); // let show_passcode_input: boolean = false; // let trigger: null|string|boolean = null; @@ -219,17 +221,26 @@ function handle_clear_access() { class=" ae_access_type hidden-print - bg-surface-100 text-surface-800 + bg-red-100 text-gray-900 duration-300 delay-150 hover:delay-1000 hover:ease-out transition-all hover:transition-all flex flex-col flex-wrap gap-1 items-end justify-center - max-w-64 - + w-72 max-w-72 + p-1 my-1 + border-2 border-gray-200 " class:hidden={hidden} > +
+

+ Passcode +

+
@@ -372,9 +372,8 @@ async function handle_change_password() {
{ e.preventDefault(); @@ -590,7 +589,7 @@ async function handle_change_password() { + {:else if $ae_loc.authenticated_access} + + {/if} + +
+ {#if $ae_loc.access_type && $ae_loc.access_type != 'anonymous'} + + + + + {#if $ae_loc.access_type == 'super'} + + + {:else if $ae_loc.access_type == 'manager'} + + + {:else if $ae_loc.access_type == 'administrator'} + + + {:else if $ae_loc.access_type == 'trusted'} + + + {:else if $ae_loc.access_type == 'public'} + Public + + {:else if $ae_loc.access_type == 'authenticated'} + Authenticated + + {:else if $ae_loc.access_type == 'anonymous'} + Anonymous Access + {:else} + Unknown Access + {/if} + + + + {:else} + + {/if} +
+ + + + + + + + +
- - - - - + + + + + -{#if $ae_loc.app_cfg?.show_element__sign_in_out} -