feat(ui) : align entity detail pages — category links and version lists on all three

This commit is contained in:
2026-04-04 16:42:53 +02:00
parent 1963ce261d
commit 6742da2fce
2 changed files with 4 additions and 0 deletions

View File

@@ -464,6 +464,7 @@ const { getConstructeurById } = useConstructeurs()
const { updateDocument } = useDocuments()
const isEditMode = ref(false)
const versionRefreshKey = ref(0)
const {
component,
@@ -512,6 +513,7 @@ const submitEdition = async () => {
if (!saving.value) {
await fetchComponent()
isEditMode.value = false
versionRefreshKey.value++
}
}

View File

@@ -366,6 +366,7 @@ const {
} = useProductHistory()
const isEditMode = ref(false)
const versionRefreshKey = ref(0)
const constructeurLinks = ref<ConstructeurLinkEntry[]>([])
const originalConstructeurLinks = ref<ConstructeurLinkEntry[]>([])
@@ -630,6 +631,7 @@ const submitEdition = async () => {
toast.showSuccess('Produit mis à jour avec succès')
await loadProduct()
isEditMode.value = false
versionRefreshKey.value++
}
} catch (error: any) {
toast.showError(humanizeError(error?.message) || 'Impossible de mettre à jour le produit')