mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-31 10:07:28 +01:00
feat: Display number of items in Location/Label page (#805)
* feat: Display number of items in Location/Label page When viewing a Location or Label page, the number of items directly associated with that Location or Label is now displayed in the section header. * style: adjust the style on the item count --------- Co-authored-by: Tonya <tonya@tokia.dev>
This commit is contained in:
committed by
GitHub
parent
d97bfb95e1
commit
230294ebb6
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user