Update Profile.vue component
This commit is contained in:
parent
354b5144ac
commit
5623701642
|
@ -328,9 +328,21 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12" v-if="mode == 'collections'">
|
<div class="col-12" v-if="mode == 'collections'">
|
||||||
<div class="py-5 text-center text-muted">
|
<div v-if="collections.length" class="row">
|
||||||
<p><i class="fas fa-images fa-2x"></i></p>
|
<div class="col-4 p-0 p-sm-2 p-md-3 p-xs-1" v-for="(c, index) in collections">
|
||||||
<p class="h2 font-weight-light pt-3">You have no collections</p>
|
<a class="card info-overlay card-md-border-0" :href="c.url">
|
||||||
|
<div class="square">
|
||||||
|
<div class="square-content" v-bind:style="'background-image: url(' + c.thumb + ');'">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<div class="py-5 text-center text-muted">
|
||||||
|
<p><i class="fas fa-images fa-2x"></i></p>
|
||||||
|
<p class="h2 font-weight-light pt-3">No collections yet</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -705,6 +717,12 @@
|
||||||
this.bookmarks = res.data
|
this.bookmarks = res.data
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if(this.mode == 'collections' && this.collections.length == 0) {
|
||||||
|
axios.get('/api/local/profile/collections/' + this.profileId)
|
||||||
|
.then(res => {
|
||||||
|
this.collections = res.data
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
reportProfile() {
|
reportProfile() {
|
||||||
|
|
Loading…
Reference in a new issue