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) }