Fix: actually allow to login via prominent login button
This commit is contained in:
parent
b1c4097cb4
commit
4be49a0561
1 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { SpecialVisualizationState } from "../SpecialVisualization"
|
import type { SpecialVisualizationState } from "../SpecialVisualization"
|
||||||
import { ImmutableStore, Store } from "../../Logic/UIEventSource"
|
import { ImmutableStore, UIEventSource } from "../../Logic/UIEventSource"
|
||||||
import type { OsmTags } from "../../Models/OsmFeature"
|
import type { OsmTags } from "../../Models/OsmFeature"
|
||||||
import LoginToggle from "../Base/LoginToggle.svelte"
|
import LoginToggle from "../Base/LoginToggle.svelte"
|
||||||
import Translations from "../i18n/Translations"
|
import Translations from "../i18n/Translations"
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
export let state: SpecialVisualizationState
|
export let state: SpecialVisualizationState
|
||||||
|
|
||||||
export let tags: Store<OsmTags>
|
export let tags: UIEventSource<OsmTags>
|
||||||
export let targetKey: string = undefined
|
export let targetKey: string = undefined
|
||||||
/**
|
/**
|
||||||
* Image to show in the button
|
* Image to show in the button
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<LoginToggle {state}>
|
<LoginToggle {state}>
|
||||||
<LoginButton slot="not-logged-in" clss="small w-full">
|
<LoginButton slot="not-logged-in" clss="small w-full" osmConnection={state.osmConnection}>
|
||||||
<Tr t={Translations.t.image.pleaseLogin} />
|
<Tr t={Translations.t.image.pleaseLogin} />
|
||||||
</LoginButton>
|
</LoginButton>
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
{#if image !== undefined}
|
{#if image !== undefined}
|
||||||
<img src={image} aria-hidden="true" />
|
<img src={image} aria-hidden="true" />
|
||||||
{:else}
|
{:else}
|
||||||
<Camera_plus class="block h-12 w-12 p-1 text-4xl" />
|
<Camera_plus class="block h-12 w-12 p-1 text-4xl" aria-hidden="true" />
|
||||||
{/if}
|
{/if}
|
||||||
{#if labelText}
|
{#if labelText}
|
||||||
{labelText}
|
{labelText}
|
||||||
|
|
Loading…
Reference in a new issue