From 96b39b2c8c698a8aaffb25194c4157cf048e8fe1 Mon Sep 17 00:00:00 2001 From: Arturo Manzoli Date: Sat, 4 May 2024 15:59:51 -0300 Subject: [PATCH] Mini-widgets: Very-generic-indicator: Adapt component message and logic for multiple views logging Signed-off-by: Arturo Manzoli --- src/components/mini-widgets/VeryGenericIndicator.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/mini-widgets/VeryGenericIndicator.vue b/src/components/mini-widgets/VeryGenericIndicator.vue index d2a37d6d1..3fc3013cb 100644 --- a/src/components/mini-widgets/VeryGenericIndicator.vue +++ b/src/components/mini-widgets/VeryGenericIndicator.vue @@ -235,7 +235,8 @@ const closeDialog = async (): Promise => { } if (loggedMiniWidgets.value.some((name) => normalize(name) === normalize(displayName))) { await Swal.fire({ - text: `This variable name is already being logged. Please rename it on The 'Custom' tab.`, + text: `This variable name is already being logged here or inside another view. + Please rename it on The 'Custom' tab.`, icon: 'info', }) return @@ -273,7 +274,9 @@ const logCurrentState = (): void => { watch( finalValue, () => { - logCurrentState() + if (miniWidget.value.managerVars.configMenuOpen === false) { + logCurrentState() + } }, { immediate: true } ) @@ -295,6 +298,7 @@ onMounted(() => { updateVariableState() updateWidgetName() updateGenericVariablesNames() + if (miniWidget.value.options.displayName) { CurrentlyLoggedVariables.addVariable(miniWidget.value.options.displayName) }