diff --git a/frontend/app/components/ComponentItem.vue b/frontend/app/components/ComponentItem.vue index bf13921..60bf917 100644 --- a/frontend/app/components/ComponentItem.vue +++ b/frontend/app/components/ComponentItem.vue @@ -32,7 +32,9 @@

@@ -353,6 +355,9 @@ import { useEntityProductDisplay } from '~/composables/useEntityProductDisplay' import { useCustomFields } from '~/composables/useCustomFields' import { mergeDefinitionsWithValues } from '~/shared/utils/customFields' +const route = useRoute() +const machineId = computed(() => route.params.id as string | undefined) + const props = defineProps({ component: { type: Object, required: true }, isEditMode: { type: Boolean, default: false }, diff --git a/frontend/app/components/DetailHeader.vue b/frontend/app/components/DetailHeader.vue index 598a544..1fc7552 100644 --- a/frontend/app/components/DetailHeader.vue +++ b/frontend/app/components/DetailHeader.vue @@ -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' }) diff --git a/frontend/app/components/PieceItem.vue b/frontend/app/components/PieceItem.vue index 63e8ad8..27d3db9 100644 --- a/frontend/app/components/PieceItem.vue +++ b/frontend/app/components/PieceItem.vue @@ -31,7 +31,9 @@

@@ -332,6 +334,9 @@ import { useCustomFields } from '~/composables/useCustomFields' import { useEntityDocuments } from '~/composables/useEntityDocuments' import { useEntityProductDisplay } from '~/composables/useEntityProductDisplay' +const route = useRoute() +const machineId = computed(() => route.params.id as string | undefined) + const props = defineProps({ piece: { type: Object, required: true }, isEditMode: { type: Boolean, default: false }, diff --git a/frontend/app/components/machine/MachineProductsCard.vue b/frontend/app/components/machine/MachineProductsCard.vue index 9efa98c..033feb6 100644 --- a/frontend/app/components/machine/MachineProductsCard.vue +++ b/frontend/app/components/machine/MachineProductsCard.vue @@ -30,8 +30,10 @@

{{ product.name }} @@ -140,8 +142,11 @@