Added an extra backup just in case Edit Mode toggle.
This commit is contained in:
@@ -7,9 +7,13 @@ import {
|
|||||||
Brain,
|
Brain,
|
||||||
House,
|
House,
|
||||||
Library,
|
Library,
|
||||||
|
Pencil,
|
||||||
RefreshCw,
|
RefreshCw,
|
||||||
RefreshCcwDot,
|
RefreshCcwDot,
|
||||||
Satellite
|
Satellite,
|
||||||
|
ToggleLeft,
|
||||||
|
ToggleRight,
|
||||||
|
UserRound,
|
||||||
} from '@lucide/svelte';
|
} from '@lucide/svelte';
|
||||||
|
|
||||||
// import { PUBLIC_TESTING } from '$env/static/public';
|
// import { PUBLIC_TESTING } from '$env/static/public';
|
||||||
@@ -125,6 +129,38 @@ onMount(() => {
|
|||||||
<RefreshCcwDot class="mx-1" />
|
<RefreshCcwDot class="mx-1" />
|
||||||
Clear Storage and Reload
|
Clear Storage and Reload
|
||||||
</button>
|
</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>
|
</div>
|
||||||
|
|
||||||
<Element_data_store
|
<Element_data_store
|
||||||
|
|||||||
Reference in New Issue
Block a user