inpirations view - hide header in favorites tab
This commit is contained in:
parent
38eb9cf35e
commit
0331e781da
3 changed files with 12 additions and 5 deletions
|
|
@ -2,7 +2,7 @@ Alt:
|
|||
|
||||
----
|
||||
|
||||
Favoriteforusers:
|
||||
Favoriteforusers: - user://WWjXgPWk
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
Favoriteforusers:
|
||||
Alt:
|
||||
|
||||
----
|
||||
|
||||
Favoriteforusers: - user://WWjXgPWk
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,10 @@
|
|||
@update:currentInspiration="changeInspiration"
|
||||
/>
|
||||
<section :id="currentTab" class="inspiration">
|
||||
<Header :inspiration="currentInspiration" />
|
||||
<Header
|
||||
v-if="currentTab !== 'favorites'"
|
||||
:inspiration="currentInspiration"
|
||||
/>
|
||||
<div class="masonry flow">
|
||||
<template
|
||||
v-for="(item, index) in currentInspiration.media"
|
||||
|
|
@ -43,14 +46,14 @@ const tabs = computed(() => {
|
|||
label: "Les Inspirations",
|
||||
id: "all",
|
||||
icon: null,
|
||||
count: null,
|
||||
count: currentInspiration.value.media.length,
|
||||
isActive: currentTab.value === "all",
|
||||
},
|
||||
{
|
||||
label: "Mes Favoris",
|
||||
id: "favorites",
|
||||
icon: "favorite",
|
||||
count: favoriteImages.value.length, // TODO: dynamiser (favorites.count)
|
||||
count: favoriteImages.value.length,
|
||||
isActive: currentTab.value === "favorites",
|
||||
},
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue