fix changeTab
This commit is contained in:
parent
97b4a77299
commit
70032e1b11
1 changed files with 6 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue