working on location tree

This commit is contained in:
2025-10-13 16:14:31 +02:00
parent b361731cab
commit 2cd022451a
10 changed files with 205 additions and 72 deletions

View File

@@ -2,6 +2,8 @@
import { t } from '../../translations.svelte';
let { locations } = $props();
console.log(locations);
</script>
<ul>
@@ -10,10 +12,12 @@
<span class="symbol"></span> {t('add_object',{object:'location'})}
</a>
</li>
{#each Object.entries(locations) as [k,v]}
{#each locations as location}
<li>
{k}
<svelte:self locations={v} />
{location.name}
{#if location.locations}
<svelte:self locations={location.locations} />
{/if}
</li>
{/each}
</ul>