mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 01:05:36 +00:00
Update PostComponent, change like logic
This commit is contained in:
parent
372bacb01b
commit
0a35f5d636
1 changed files with 9 additions and 10 deletions
|
@ -220,13 +220,15 @@
|
|||
<h3 v-if="status.visibility == 'public'" v-bind:class="[reactions.bookmarked ? 'fas fa-bookmark text-warning m-0 mr-3 cursor-pointer' : 'far fa-bookmark m-0 mr-3 cursor-pointer']" title="Bookmark" v-on:click="bookmarkStatus"></h3>
|
||||
<h3 v-if="status.visibility == 'public'" v-bind:class="[reactions.shared ? 'fas fa-retweet m-0 text-primary cursor-pointer' : 'fas fa-retweet m-0 share-btn cursor-pointer']" title="Share" v-on:click="shareStatus"></h3>
|
||||
</div>
|
||||
<div class="reaction-counts font-weight-bold mb-0">
|
||||
<span style="cursor:pointer;" v-on:click="likesModal">
|
||||
<span class="like-count">{{status.favourites_count || 0}}</span> likes
|
||||
</span>
|
||||
<span v-if="status.visibility == 'public'" class="float-right" style="cursor:pointer;" v-on:click="sharesModal">
|
||||
<span class="share-count pl-4">{{status.reblogs_count || 0}}</span> shares
|
||||
</span>
|
||||
<div class="reaction-counts mb-0">
|
||||
<div v-if="status.liked_by.username && status.liked_by.username !== user.username" class="likes mb-1">
|
||||
<span class="like-count">Liked by
|
||||
<a class="font-weight-bold text-dark" :href="'/'+status.liked_by.username">{{status.liked_by.username}}</a>
|
||||
<span v-if="status.liked_by.others == true">
|
||||
and <span class="font-weight-bold text-dark cursor-pointer" @click="likesModal">others</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="timestamp pt-2 d-flex align-items-bottom justify-content-between">
|
||||
<a v-bind:href="statusUrl" class="small text-muted" :title="status.created_at">
|
||||
|
@ -978,9 +980,6 @@ export default {
|
|||
window.location.href = '/login?next=' + encodeURIComponent('/p/' + this.status.shortcode);
|
||||
return;
|
||||
}
|
||||
if(this.status.favourites_count == 0) {
|
||||
return;
|
||||
}
|
||||
if(this.likes.length) {
|
||||
this.$refs.likesModal.show();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue