From 7e67b124f3258b08c9428cefd0c6e61808992990 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Mon, 9 Mar 2026 15:09:14 +0100 Subject: [PATCH] feat(machine) : allow site editing on machine detail page and align card buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add site select field in MachineInfoCard (edit mode) - Include siteId in machine PATCH payload - Align action buttons (Modifier/Supprimer/Détails) consistently at card bottom - Use mt-auto + flex-col to push buttons to bottom across all machine cards Co-Authored-By: Claude Opus 4.6 --- app/components/machine/MachineInfoCard.vue | 27 ++++++++++++++++++++++ app/composables/useMachineDetailData.ts | 9 +++++++- app/composables/useMachineDetailUpdates.ts | 3 +++ app/pages/index.vue | 20 ++++++++-------- app/pages/machine/[id].vue | 4 ++++ app/pages/machines/index.vue | 12 +++++----- 6 files changed, 58 insertions(+), 17 deletions(-) diff --git a/app/components/machine/MachineInfoCard.vue b/app/components/machine/MachineInfoCard.vue index e364679..3b4f8f7 100644 --- a/app/components/machine/MachineInfoCard.vue +++ b/app/components/machine/MachineInfoCard.vue @@ -20,6 +20,29 @@ {{ machineName }} +
+ + +
+ {{ machineSiteName || 'Non défini' }} +
+