Skip to content

Commit 4ea6135

Browse files
committed
only show new sculptures on explore
1 parent 4c0e895 commit 4ea6135

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/Explore.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<template>
22
<div class="container">
3-
<router-link to="/featured" class="link">
3+
<!-- <router-link to="/featured" class="link">
44
<h1 v-show="!loading">Featured Sculptures
55
<span v-show="!loading && $route.name !== 'featured'">›</span>
66
</h1>
7-
</router-link>
8-
<sculpture-feed :sculptures="featuredSculptures" v-if="featuredSculptures"></sculpture-feed>
7+
</router-link> -->
8+
<h1 v-show="!loading && $route.name == 'featured'">Featured Sculptures </h1>
9+
<sculpture-feed :sculptures="featuredSculptures" v-if="featuredSculptures && $route.name == 'featured'"></sculpture-feed>
910
<h1 v-show="!loading && $route.name !== 'featured'">New Sculptures</h1>
1011
<sculpture-feed :sculptures="sculptures" v-if="sculptures && $route.name !== 'featured'"></sculpture-feed>
1112
</div>
@@ -43,7 +44,7 @@ export default {
4344
sculptures.reverse();
4445
let featured = sculptures.filter(sculpture => sculpture.featured == true);
4546
this.sculptures = sculptures;
46-
this.featuredSculptures = featured.slice(0, 8);
47+
// this.featuredSculptures = featured.slice(0, 8);
4748
this.finishedLoading();
4849
}
4950
})

0 commit comments

Comments
 (0)