feat(ui) : align entity detail pages — category links and version lists on all three
This commit is contained in:
@@ -464,6 +464,7 @@ const { getConstructeurById } = useConstructeurs()
|
|||||||
const { updateDocument } = useDocuments()
|
const { updateDocument } = useDocuments()
|
||||||
|
|
||||||
const isEditMode = ref(false)
|
const isEditMode = ref(false)
|
||||||
|
const versionRefreshKey = ref(0)
|
||||||
|
|
||||||
const {
|
const {
|
||||||
component,
|
component,
|
||||||
@@ -512,6 +513,7 @@ const submitEdition = async () => {
|
|||||||
if (!saving.value) {
|
if (!saving.value) {
|
||||||
await fetchComponent()
|
await fetchComponent()
|
||||||
isEditMode.value = false
|
isEditMode.value = false
|
||||||
|
versionRefreshKey.value++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -366,6 +366,7 @@ const {
|
|||||||
} = useProductHistory()
|
} = useProductHistory()
|
||||||
|
|
||||||
const isEditMode = ref(false)
|
const isEditMode = ref(false)
|
||||||
|
const versionRefreshKey = ref(0)
|
||||||
|
|
||||||
const constructeurLinks = ref<ConstructeurLinkEntry[]>([])
|
const constructeurLinks = ref<ConstructeurLinkEntry[]>([])
|
||||||
const originalConstructeurLinks = ref<ConstructeurLinkEntry[]>([])
|
const originalConstructeurLinks = ref<ConstructeurLinkEntry[]>([])
|
||||||
@@ -630,6 +631,7 @@ const submitEdition = async () => {
|
|||||||
toast.showSuccess('Produit mis à jour avec succès')
|
toast.showSuccess('Produit mis à jour avec succès')
|
||||||
await loadProduct()
|
await loadProduct()
|
||||||
isEditMode.value = false
|
isEditMode.value = false
|
||||||
|
versionRefreshKey.value++
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
toast.showError(humanizeError(error?.message) || 'Impossible de mettre à jour le produit')
|
toast.showError(humanizeError(error?.message) || 'Impossible de mettre à jour le produit')
|
||||||
|
|||||||
Reference in New Issue
Block a user