From 77df2d40ecd32ff2ea6dc70b5cd2938b7e32d851 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 25 Mar 2025 12:51:21 +0100 Subject: [PATCH] fix(VnLog): refs #6994 simplify value binding and improve descriptor handling --- src/components/common/VnLog.vue | 12 +++++------- src/components/common/VnLogValue.vue | 24 +++++++++++++++--------- src/stores/useDescriptorStore.js | 2 +- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/components/common/VnLog.vue b/src/components/common/VnLog.vue index 804147539..7402ceb3e 100644 --- a/src/components/common/VnLog.vue +++ b/src/components/common/VnLog.vue @@ -561,9 +561,7 @@ watch( }}: @@ -616,7 +614,7 @@ watch( {{ prop.nameI18n }}: {} }, + name: { type: String, default: undefined }, }); const descriptor = computed(() => descriptorStore.has($props.name)); diff --git a/src/stores/useDescriptorStore.js b/src/stores/useDescriptorStore.js index a5b83a42e..be342b016 100644 --- a/src/stores/useDescriptorStore.js +++ b/src/stores/useDescriptorStore.js @@ -11,7 +11,7 @@ export const useDescriptorStore = defineStore('descriptorStore', () => { const files = import.meta.glob(`/src/**/*DescriptorProxy.vue`); const moduleParser = { account: 'user', - client: 'customer', + customer: 'client', }; for (const file in files) { const name = file.split('/').at(-1).slice(0, -19).toLowerCase();