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:
@@ -325,25 +325,25 @@ const submitMachineEdition = async () => {
|
||||
refreshVersions()
|
||||
}
|
||||
|
||||
const confirmRemoveProduct = async (id) => {
|
||||
const confirmRemoveProduct = async (id: string) => {
|
||||
if (!await confirmDialog({ title: 'Retirer ce produit ?', message: 'Le produit sera dissocié de la machine.', confirmText: 'Retirer', dangerous: true })) return
|
||||
await d.removeProductLink(id)
|
||||
refreshVersions()
|
||||
}
|
||||
|
||||
const confirmRemoveComponent = async (id) => {
|
||||
const confirmRemoveComponent = async (id: string) => {
|
||||
if (!await confirmDialog({ title: 'Retirer ce composant ?', message: 'Le composant sera dissocié de la machine.', confirmText: 'Retirer', dangerous: true })) return
|
||||
await d.removeComponentLink(id)
|
||||
refreshVersions()
|
||||
}
|
||||
|
||||
const confirmRemovePiece = async (id) => {
|
||||
const confirmRemovePiece = async (id: string) => {
|
||||
if (!await confirmDialog({ title: 'Retirer cette pièce ?', message: 'La pièce sera dissociée de la machine.', confirmText: 'Retirer', dangerous: true })) return
|
||||
await d.removePieceLink(id)
|
||||
refreshVersions()
|
||||
}
|
||||
|
||||
const confirmRemoveDocument = async (id) => {
|
||||
const confirmRemoveDocument = async (id: string) => {
|
||||
if (!await confirmDialog({ title: 'Supprimer ce document ?', message: 'Le fichier sera supprimé définitivement.', confirmText: 'Supprimer', dangerous: true })) return
|
||||
d.removeMachineDocument(id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user