diff --git a/UI/Base/LoginToggle.svelte b/UI/Base/LoginToggle.svelte index e3c2a4ad0..6f848e9cf 100644 --- a/UI/Base/LoginToggle.svelte +++ b/UI/Base/LoginToggle.svelte @@ -5,14 +5,16 @@ import { Translation } from "../i18n/Translation"; import Translations from "../i18n/Translations"; import Tr from "./Tr.svelte"; + import {OsmConnection} from "../../Logic/Osm/OsmConnection"; + import {ImmutableStore, UIEventSource} from "../../Logic/UIEventSource"; - export let state: SpecialVisualizationState; + export let state: {osmConnection: OsmConnection, featureSwitches?: { featureSwitchUserbadge?: UIEventSource}}; /** * If set, 'loading' will act as if we are already logged in. */ export let ignoreLoading: boolean = false let loadingStatus = state.osmConnection.loadingStatus; - let badge = state.featureSwitches.featureSwitchUserbadge; + let badge = state.featureSwitches?.featureSwitchUserbadge ?? new ImmutableStore(true); const t = Translations.t.general; const offlineModes: Partial> = { offline: t.loginFailedOfflineMode, diff --git a/UI/BigComponents/CustomGeneratorButton.svelte b/UI/BigComponents/CustomGeneratorButton.svelte deleted file mode 100644 index a1d3fb86d..000000000 --- a/UI/BigComponents/CustomGeneratorButton.svelte +++ /dev/null @@ -1,32 +0,0 @@ - - -
- {#if $userDetails.csCount < Constants.userJourney.themeGeneratorReadOnlyUnlock} - - - - {:else} - - - - - - - {/if} -
diff --git a/UI/BigComponents/HiddenThemeList.svelte b/UI/BigComponents/HiddenThemeList.svelte index abf54f391..83e638a95 100644 --- a/UI/BigComponents/HiddenThemeList.svelte +++ b/UI/BigComponents/HiddenThemeList.svelte @@ -1,48 +1,54 @@ - - -

{t.previouslyHiddenTitle.toString()}

-

- {t.hiddenExplanation.Subs({ - hidden_discovered: knownThemes.length.toString(), - total_hidden: hiddenThemes.length.toString(), - })} -

-
-
+ + + +

{t.previouslyHiddenTitle.toString()}

+

+ {t.hiddenExplanation.Subs({ + hidden_discovered: knownThemes.length.toString(), + total_hidden: hiddenThemes.length.toString(), + })} +

+
+
+ +
diff --git a/UI/BigComponents/ProfessionalServicesButton.svelte b/UI/BigComponents/ProfessionalServicesButton.svelte deleted file mode 100644 index e88f97057..000000000 --- a/UI/BigComponents/ProfessionalServicesButton.svelte +++ /dev/null @@ -1,25 +0,0 @@ - - -
- - - {t.hookMore.toString()} - -
- - -
- -
-
-
-
- diff --git a/UI/BigComponents/ThemesList.svelte b/UI/BigComponents/ThemesList.svelte index 8bdb71189..0f63d6238 100644 --- a/UI/BigComponents/ThemesList.svelte +++ b/UI/BigComponents/ThemesList.svelte @@ -4,8 +4,6 @@ import {OsmConnection} from "../../Logic/Osm/OsmConnection" import {UIEventSource} from "../../Logic/UIEventSource" import type Loc from "../../Models/Loc" - import CustomGeneratorButton from "./CustomGeneratorButton.svelte" - import ProfessionalServicesButton from "./ProfessionalServicesButton.svelte" import ThemeButton from "./ThemeButton.svelte" import {LayoutInformation} from "../../Models/ThemeConfig/LayoutConfig" import MoreScreen from "./MoreScreen" @@ -25,11 +23,6 @@ {#if onMainScreen}
- {#if ($search === undefined || $search === "") && !isCustom && hideThemes} - - - {/if} - {#each filteredThemes as theme (theme.id)} {#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)} @@ -38,10 +31,6 @@
{:else}
- {#if ($search === undefined || $search === "") && !isCustom && hideThemes} - - - {/if} {#each filteredThemes as theme (theme.id)} {#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)}