Feature: creat_copy: don't show if not logged in, fix some typing errors

This commit is contained in:
Pieter Vander Vennet 2025-07-08 00:37:17 +02:00
parent fcd49d5c12
commit 839d0c4427
2 changed files with 11 additions and 9 deletions

View file

@ -42,6 +42,7 @@
let showPopup: UIEventSource<boolean> = new UIEventSource(false)
const showTags = state.userRelatedState.showTagsB
const loggedIn = state.userRelatedState.osmConnection.isLoggedIn
let creatingCopy = new UIEventSource(false)
const t = Translations.t.copy
@ -150,10 +151,11 @@
</Popup>
<div class="flex justify-end">
<button on:click={() => showPopup.set(true)}>
<DocumentDuplicate class="w-4" />
<Tr t={t.button} />
</button>
</div>
{#if $loggedIn}
<div class="flex justify-end">
<button on:click={() => showPopup.set(true)}>
<DocumentDuplicate class="w-4" />
<Tr t={t.button} />
</button>
</div>
{/if}