From 70032e1b1139609cc6b2549f29001276611952c1 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 10 Sep 2024 15:46:28 +0200 Subject: [PATCH] fix changeTab --- src/views/Inspirations.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/Inspirations.vue b/src/views/Inspirations.vue index e6e5f73..5f0fb6c 100644 --- a/src/views/Inspirations.vue +++ b/src/views/Inspirations.vue @@ -62,21 +62,23 @@ const tabs = computed(() => { id: "all", icon: null, count: null, - isActive: currentTab.value === "all" + isActive: currentTab.value === "all", }, { label: "Mes Favoris", id: "favorites", icon: "favorite", count: 6, // TODO: dynamiser (favorites.count) - isActive: currentTab.value === "favorites" - } + isActive: currentTab.value === "favorites", + }, ]; }); const currentInspiration = data.inspirations[0]; -function toggleFavorite() {} +function changeTab(newValue) { + currentTab.value = newValue; +}