feat(detail) : add consultation pages for piece, composant, product
Add read-only detail pages with edit/view toggle for piece, composant and product, matching the existing machine detail pattern. Empty fields and documents section are hidden in consultation mode. Catalogs and cross-links updated to point to the new detail pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -344,7 +344,7 @@ export function useComponentCreate() {
|
||||
selectedDocuments.value = []
|
||||
}
|
||||
toast.showSuccess('Composant créé avec succès')
|
||||
await router.replace(`/component/${createdComponent.id}/edit`)
|
||||
await router.replace(`/component/${createdComponent.id}?edit=true`)
|
||||
}
|
||||
else if (result.error) {
|
||||
toast.showError(result.error)
|
||||
|
||||
@@ -569,6 +569,7 @@ export function useComponentEdit(componentId: string) {
|
||||
handleFilesAdded,
|
||||
refreshDocuments,
|
||||
submitEdition,
|
||||
fetchComponent,
|
||||
setSlotQuantity,
|
||||
setPieceSlotSelection,
|
||||
setProductSlotSelection,
|
||||
|
||||
@@ -467,6 +467,7 @@ export function usePieceEdit(pieceId: string) {
|
||||
handleFilesAdded,
|
||||
setProductSelection,
|
||||
submitEdition,
|
||||
fetchPiece,
|
||||
formatPieceStructurePreview,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user