forked from MapComplete/MapComplete
Feature: creat_copy: don't show if not logged in, fix some typing errors
This commit is contained in:
parent
fcd49d5c12
commit
839d0c4427
2 changed files with 11 additions and 9 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue