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
|
@ -20,7 +20,7 @@ export default class CreateNewNodeAction extends OsmCreateAction {
|
|||
private readonly _snapOnto: OsmWay
|
||||
private readonly _reusePointDistance: number
|
||||
private readonly meta: {
|
||||
changeType: "create" | "import"
|
||||
changeType: "create" | "import" | "copy"
|
||||
theme: string
|
||||
specialMotivation?: string
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ export default class CreateNewNodeAction extends OsmCreateAction {
|
|||
snapOnto?: OsmWay
|
||||
reusePointWithinMeters?: number
|
||||
theme: string
|
||||
changeType: "create" | "import" | null
|
||||
changeType: "create" | "import" | "copy" | null
|
||||
specialMotivation?: string
|
||||
}
|
||||
) {
|
||||
|
|
|
@ -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