Skip to content

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

Update location to include total pricing

Katosb57efa02fff0
diff --git a/frontend/pages/location/[id].vue b/frontend/pages/location/[id].vue
index 5f7f1a13..47338807 100644
--- a/frontend/pages/location/[id].vue
+++ b/frontend/pages/location/[id].vue
@@ -138,8 +138,17 @@
<li>{{ location.name }}</li>
</ul>
</div>
- <h1 class="text-2xl pb-1">
+ <h1 class="text-2xl pb-1 flex items-center gap-3">
{{ location ? location.name : "" }}
+
+ <div
+ v-if="location && location.totalPrice"
+ class="text-xs bg-secondary text-secondary-content rounded-full px-2 py-1"
+ >
+ <div>
+ <Currency :amount="location.totalPrice" />
+ </div>
+ </div>
</h1>
<div class="flex gap-1 flex-wrap text-xs">
<div>