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 _snapOnto: OsmWay
|
||||||
private readonly _reusePointDistance: number
|
private readonly _reusePointDistance: number
|
||||||
private readonly meta: {
|
private readonly meta: {
|
||||||
changeType: "create" | "import"
|
changeType: "create" | "import" | "copy"
|
||||||
theme: string
|
theme: string
|
||||||
specialMotivation?: string
|
specialMotivation?: string
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ export default class CreateNewNodeAction extends OsmCreateAction {
|
||||||
snapOnto?: OsmWay
|
snapOnto?: OsmWay
|
||||||
reusePointWithinMeters?: number
|
reusePointWithinMeters?: number
|
||||||
theme: string
|
theme: string
|
||||||
changeType: "create" | "import" | null
|
changeType: "create" | "import" | "copy" | null
|
||||||
specialMotivation?: string
|
specialMotivation?: string
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
let showPopup: UIEventSource<boolean> = new UIEventSource(false)
|
let showPopup: UIEventSource<boolean> = new UIEventSource(false)
|
||||||
|
|
||||||
const showTags = state.userRelatedState.showTagsB
|
const showTags = state.userRelatedState.showTagsB
|
||||||
|
const loggedIn = state.userRelatedState.osmConnection.isLoggedIn
|
||||||
let creatingCopy = new UIEventSource(false)
|
let creatingCopy = new UIEventSource(false)
|
||||||
|
|
||||||
const t = Translations.t.copy
|
const t = Translations.t.copy
|
||||||
|
@ -150,10 +151,11 @@
|
||||||
|
|
||||||
</Popup>
|
</Popup>
|
||||||
|
|
||||||
<div class="flex justify-end">
|
{#if $loggedIn}
|
||||||
|
<div class="flex justify-end">
|
||||||
<button on:click={() => showPopup.set(true)}>
|
<button on:click={() => showPopup.set(true)}>
|
||||||
<DocumentDuplicate class="w-4" />
|
<DocumentDuplicate class="w-4" />
|
||||||
<Tr t={t.button} />
|
<Tr t={t.button} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue