fix(ui) : phase 1 review fixes — machine context links, type annotations, double arrow

- Add ?from=machine&machineId=xxx query params to entity NuxtLinks in hierarchy
- Add useRoute + machineId computed to ComponentItem, PieceItem, MachineProductsCard
- Add :string type to confirmRemove* handlers in machine page
- Remove unicode arrow from DetailHeader backLabel (icon already provides it)
- Add !isEditMode guard on product links in MachineProductsCard

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 17:12:20 +02:00
parent 8a355aad11
commit 6a43f08df8
5 changed files with 25 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ const backDestination = computed(() => {
const backLabel = computed(() => {
if (route.query.from === 'machine') {
return 'Retour à la machine'
return 'Retour à la machine'
}
return props.backLinkLabel ?? 'Retour au catalogue'
})