Added an extra backup just in case Edit Mode toggle.

This commit is contained in:
Scott Idem
2026-04-01 17:43:36 -04:00
parent 197d136c59
commit 601bcf94b0

View File

@@ -7,9 +7,13 @@ import {
Brain,
House,
Library,
Pencil,
RefreshCw,
RefreshCcwDot,
Satellite
Satellite,
ToggleLeft,
ToggleRight,
UserRound,
} from '@lucide/svelte';
// import { PUBLIC_TESTING } from '$env/static/public';
@@ -125,6 +129,38 @@ onMount(() => {
<RefreshCcwDot class="mx-1" />
Clear Storage and Reload
</button>
{#if $ae_loc?.trusted_access}
{#if $ae_loc?.edit_mode}
<button
type="button"
onclick={() => {
$ae_loc.edit_mode = false;
}}
class="btn btn-sm preset-tonal-surface hover:preset-outlined-warning text-error-300 hover:text-error-800 m-1 p-1 transition-all"
title="Turn off edit mode">
<ToggleRight size="1em" class="m-1" />
<span class="grow">
<Pencil size="1em" class="m-1" />
Edit Mode Off
</span>
</button>
{:else}
<button
type="button"
onclick={() => {
$ae_loc.edit_mode = true;
}}
class="btn btn-sm preset-tonal-surface hover:preset-outlined-warning text-surface-300 hover:text-error-800 m-1 p-1 transition-all"
title="Turn on edit mode">
<ToggleLeft size="1em" class="m-1" />
<span class="grow">
<UserRound size="1em" class="m-1" />
Edit Mode?
</span>
</button>
{/if}
{/if}
</div>
<Element_data_store