forked from MapComplete/MapComplete
Fix: don't show tags in filter view if not logged in
This commit is contained in:
parent
9239376851
commit
a07c79289b
1 changed files with 4 additions and 2 deletions
|
@ -28,9 +28,9 @@
|
||||||
(s) =>
|
(s) =>
|
||||||
(s === "yes" &&
|
(s === "yes" &&
|
||||||
state?.userRelatedState?.osmConnection?.userDetails?.data?.csCount >=
|
state?.userRelatedState?.osmConnection?.userDetails?.data?.csCount >=
|
||||||
Constants.userJourney.tagsVisibleAt) ||
|
Constants.userJourney.tagsVisibleAt) ||
|
||||||
s === "always" ||
|
s === "always" ||
|
||||||
s === "full"
|
s === "full",
|
||||||
)
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -79,9 +79,11 @@
|
||||||
{#if filter.options.length === 1 && filter.options[0].fields.length === 0}
|
{#if filter.options.length === 1 && filter.options[0].fields.length === 0}
|
||||||
<Checkbox selected={getBooleanStateFor(filter)}>
|
<Checkbox selected={getBooleanStateFor(filter)}>
|
||||||
<Tr t={filter.options[0].question} />
|
<Tr t={filter.options[0].question} />
|
||||||
|
{#if $showTags && filter.options[0].osmTags !== undefined}
|
||||||
<span class="subtle">
|
<span class="subtle">
|
||||||
{filter.options[0].osmTags.asHumanString()}
|
{filter.options[0].osmTags.asHumanString()}
|
||||||
</span>
|
</span>
|
||||||
|
{/if}
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue