Update DiscoverComponent

This commit is contained in:
Daniel Supernault 2018-11-28 21:11:42 -07:00
parent f25da930d8
commit 3afef810da
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
4 changed files with 14 additions and 14 deletions

View file

@ -1,6 +1,6 @@
<template>
<div class="container">
<section class="mb-5 section-people">
<!-- <section class="mb-5 section-people">
<p class="lead text-muted font-weight-bold mb-0">Discover People</p>
<div class="loader text-center">
<div class="lds-ring"><div></div><div></div><div></div><div></div></div>
@ -21,7 +21,7 @@
</div>
</div>
</div>
</section>
</section> -->
<section class="mb-5 section-explore">
<p class="lead text-muted font-weight-bold mb-0">Explore</p>
<div class="profile-timeline">
@ -77,16 +77,16 @@ export default {
},
fetchData() {
axios.get('/api/v2/discover/people')
.then((res) => {
let data = res.data;
this.people = data.people;
// axios.get('/api/v2/discover/people')
// .then((res) => {
// let data = res.data;
// this.people = data.people;
if(this.people.length > 1) {
$('.section-people .loader').hide();
$('.section-people .row.d-none').removeClass('d-none');
}
});
// if(this.people.length > 1) {
// $('.section-people .loader').hide();
// $('.section-people .row.d-none').removeClass('d-none');
// }
// });
axios.get('/api/v2/discover/posts')
.then((res) => {