mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update PostComponent, fix MomentUI like counter
This commit is contained in:
parent
2e54643760
commit
42c6121ab9
1 changed files with 5 additions and 1 deletions
|
@ -323,7 +323,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="like-count font-weight-bold mt-2 rounded border" style="cursor:pointer;" v-on:click="likesModal">
|
<div class="like-count font-weight-bold mt-2 rounded border" style="cursor:pointer;" v-on:click="likesModal">
|
||||||
|
|
||||||
{{ownerOrAdmin() ? (status.liked_by.total_count + 1) : 0}}
|
{{ownerOrAdmin == true ? (status.liked_by.total_count + 1) : 0}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
@ -898,6 +898,10 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(u.has('ui') && u.get('ui') == 'moment' && this.layout != 'moment') {
|
||||||
|
this.layout = 'moment';
|
||||||
|
}
|
||||||
|
|
||||||
if(forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') {
|
if(forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') {
|
||||||
this.layout = 'metro';
|
this.layout = 'metro';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue