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",
|
id: "all",
|
||||||
icon: null,
|
icon: null,
|
||||||
count: null,
|
count: null,
|
||||||
isActive: currentTab.value === "all"
|
isActive: currentTab.value === "all",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Mes Favoris",
|
label: "Mes Favoris",
|
||||||
id: "favorites",
|
id: "favorites",
|
||||||
icon: "favorite",
|
icon: "favorite",
|
||||||
count: 6, // TODO: dynamiser (favorites.count)
|
count: 6, // TODO: dynamiser (favorites.count)
|
||||||
isActive: currentTab.value === "favorites"
|
isActive: currentTab.value === "favorites",
|
||||||
}
|
},
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentInspiration = data.inspirations[0];
|
const currentInspiration = data.inspirations[0];
|
||||||
|
|
||||||
function toggleFavorite() {}
|
function changeTab(newValue) {
|
||||||
|
currentTab.value = newValue;
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue