From 3376669027327c777f8f4871b16ea7d51d8affef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20de=20Metz?= Date: Sat, 4 Jan 2025 13:55:03 +0100 Subject: [PATCH] Fix the title and the color of the toggle heatmap control. --- js/controls/heatmap_control.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/controls/heatmap_control.vue b/js/controls/heatmap_control.vue index e4f1749..01fba5a 100644 --- a/js/controls/heatmap_control.vue +++ b/js/controls/heatmap_control.vue @@ -24,12 +24,12 @@ const { t } = useI18n(); const displayHeatmap = ref(true); const iconColor = computed(() => { - return displayHeatmap ? 'primary' : ''; + return displayHeatmap.value ? 'primary' : ''; }); const title = computed(() => { - return displayHeatmap ? t('heatmap.hide') : t('heatmap.show'); -}) + return displayHeatmap.value ? t('heatmap.hide') : t('heatmap.show'); +}); function toggleHeatmap() { displayHeatmap.value = !displayHeatmap.value;