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"
|
@update:currentInspiration="changeInspiration"
|
||||||
/>
|
/>
|
||||||
<section :id="currentTab" class="inspiration">
|
<section :id="currentTab" class="inspiration">
|
||||||
<Header :inspiration="currentInspiration" />
|
<Header
|
||||||
|
v-if="currentTab !== 'favorites'"
|
||||||
|
:inspiration="currentInspiration"
|
||||||
|
/>
|
||||||
<div class="masonry flow">
|
<div class="masonry flow">
|
||||||
<template
|
<template
|
||||||
v-for="(item, index) in currentInspiration.media"
|
v-for="(item, index) in currentInspiration.media"
|
||||||
|
|
@ -43,14 +46,14 @@ const tabs = computed(() => {
|
||||||
label: "Les Inspirations",
|
label: "Les Inspirations",
|
||||||
id: "all",
|
id: "all",
|
||||||
icon: null,
|
icon: null,
|
||||||
count: null,
|
count: currentInspiration.value.media.length,
|
||||||
isActive: currentTab.value === "all",
|
isActive: currentTab.value === "all",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Mes Favoris",
|
label: "Mes Favoris",
|
||||||
id: "favorites",
|
id: "favorites",
|
||||||
icon: "favorite",
|
icon: "favorite",
|
||||||
count: favoriteImages.value.length, // TODO: dynamiser (favorites.count)
|
count: favoriteImages.value.length,
|
||||||
isActive: currentTab.value === "favorites",
|
isActive: currentTab.value === "favorites",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue