From 6716d3112666340a8244ca1e3702e77171c76203 Mon Sep 17 00:00:00 2001 From: r-dev Date: Sat, 4 Apr 2026 16:33:08 +0200 Subject: [PATCH] feat(ui) : add item counters to machine section titles --- frontend/app/components/ComponentItem.vue | 9 +++++++- .../machine/MachineComponentsCard.vue | 5 ++++- .../machine/MachineDocumentsCard.vue | 5 ++++- .../components/machine/MachineInfoCard.vue | 22 +++++++++---------- .../components/machine/MachinePiecesCard.vue | 5 ++++- 5 files changed, 31 insertions(+), 15 deletions(-) diff --git a/frontend/app/components/ComponentItem.vue b/frontend/app/components/ComponentItem.vue index cd324bf..cf15a95 100644 --- a/frontend/app/components/ComponentItem.vue +++ b/frontend/app/components/ComponentItem.vue @@ -14,7 +14,14 @@ /> -
+
-

Composants

+

+ Composants + {{ components.length }} +

@@ -152,9 +152,9 @@
diff --git a/frontend/app/components/machine/MachinePiecesCard.vue b/frontend/app/components/machine/MachinePiecesCard.vue index 68b157b..6f068f9 100644 --- a/frontend/app/components/machine/MachinePiecesCard.vue +++ b/frontend/app/components/machine/MachinePiecesCard.vue @@ -2,7 +2,10 @@
-

Pièces de la machine

+

+ Pièces de la machine + {{ pieces.length }} +