From 500f38cc21d2765e6607f9b5db6d5eb83a19f78c Mon Sep 17 00:00:00 2001 From: jtubau Date: Wed, 7 May 2025 17:09:12 +0200 Subject: [PATCH] refactor: refs #8945 add handlePhotoUpdated method to reload image after update --- src/pages/FixedAsset/Card/FixedAssetDescriptor.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/FixedAsset/Card/FixedAssetDescriptor.vue b/src/pages/FixedAsset/Card/FixedAssetDescriptor.vue index 8212a3485..989980663 100644 --- a/src/pages/FixedAsset/Card/FixedAssetDescriptor.vue +++ b/src/pages/FixedAsset/Card/FixedAssetDescriptor.vue @@ -31,6 +31,10 @@ const showEditPhotoForm = ref(false); const toggleEditPictureForm = () => { showEditPhotoForm.value = !showEditPhotoForm.value; }; + +const handlePhotoUpdated = (evt = false) => { + image.value.reload(evt); +};