Skip to content

Commit

Permalink
Mini-widgets: Very-generic-indicator: Adapt component message and log…
Browse files Browse the repository at this point in the history
…ic for multiple views logging

Signed-off-by: Arturo Manzoli <[email protected]>
  • Loading branch information
ArturoManzoli committed May 7, 2024
1 parent 331612f commit 5e49b85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/mini-widgets/VeryGenericIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ const closeDialog = async (): Promise<void> => {
}
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
Expand Down Expand Up @@ -273,7 +274,9 @@ const logCurrentState = (): void => {
watch(
finalValue,
() => {
logCurrentState()
if (miniWidget.value.managerVars.configMenuOpen === false) {
logCurrentState()
}
},
{ immediate: true }
)
Expand All @@ -295,6 +298,7 @@ onMounted(() => {
updateVariableState()
updateWidgetName()
updateGenericVariablesNames()
if (miniWidget.value.options.displayName) {
CurrentlyLoggedVariables.addVariable(miniWidget.value.options.displayName)
}
Expand Down

0 comments on commit 5e49b85

Please sign in to comment.