Skip to content

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

feat: Display number of items in Location/Label page (#805)

Michael Manganiello230294ebb671
diff --git a/frontend/components/Item/View/Selectable.vue b/frontend/components/Item/View/Selectable.vue
index 78de9229..559c294c 100644
--- a/frontend/components/Item/View/Selectable.vue
+++ b/frontend/components/Item/View/Selectable.vue
@@ -3,6 +3,7 @@
import type { ItemSummary } from "~~/lib/api/types/data-contracts";
import MdiCardTextOutline from "~icons/mdi/card-text-outline";
import MdiTable from "~icons/mdi/table";
+ import { Badge } from "@/components/ui/badge";
import { Button, ButtonGroup } from "@/components/ui/button";
type Props = {
@@ -29,7 +30,12 @@
<template>
<section>
<BaseSectionHeader class="mb-2 mt-4 flex items-center justify-between">
- {{ $t("components.item.view.selectable.items") }}
+ <div class="flex gap-2">
+ {{ $t("components.item.view.selectable.items") }}
+ <Badge>
+ {{ items.length }}
+ </Badge>
+ </div>
<template #description>
<div v-if="!viewSet">
<ButtonGroup>