Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix: restore location section (#587)

Hayden31839eb4448d
diff --git a/frontend/pages/location/[id].vue b/frontend/pages/location/[id].vue
index fd980854..e2b237d0 100644
--- a/frontend/pages/location/[id].vue
+++ b/frontend/pages/location/[id].vue
@@ -166,6 +166,13 @@
<section v-if="location && items">
<ItemViewSelectable :items="items" />
</section>
+
+ <section v-if="location && location.children.length > 0" class="mt-6">
+ <BaseSectionHeader class="mb-5"> Child Locations </BaseSectionHeader>
+ <div class="grid gap-2 grid-cols-1 sm:grid-cols-3">
+ <LocationCard v-for="item in location.children" :key="item.id" :location="item" />
+ </div>
+ </section>
</BaseContainer>
</div>
</template>