Merge branch 'master' into develop

This commit is contained in:
Pieter Vander Vennet 2025-08-26 23:26:12 +02:00
commit d6b56f4eb3
61 changed files with 691 additions and 458 deletions

View file

@ -9,7 +9,10 @@
import Tr from "../Base/Tr.svelte"
let open = false
export let state: { osmConnection: OsmConnection, featureSwitches: { featureSwitchEnableLogin: Store<boolean> } }
export let state: {
osmConnection: OsmConnection
featureSwitches: { featureSwitchEnableLogin: Store<boolean> }
}
let userdetails = state.osmConnection.userDetails
let username = userdetails.mapD((ud) => ud.name, onDestroy)
username.addCallbackAndRunD((ud) => {
@ -23,7 +26,6 @@
</script>
<If condition={state.featureSwitches.featureSwitchEnableLogin}>
<Popover
class="mt-4 hidden sm:block"
defaultClass="py-2 px-3 w-fit "
@ -38,7 +40,7 @@
<img src={$userdetails.img} alt="avatar" class="mr-4 h-10 w-10 rounded-full" />
{/if}
<div>
<Tr t={Translations.t.general.welcomeBack}/>
<Tr t={Translations.t.general.welcomeBack} />
<div class="normal-background" style="width: max-content">
<b>{$username}</b>
</div>