mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-23 14:03:35 +00:00
Merge pull request #3020 from Bnyro/creator-replied
feat: show if creator replied in comments
This commit is contained in:
commit
d5533101f0
@ -30,10 +30,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<CollapsableText :text="comment.commentText" :visible-limit="500" />
|
<CollapsableText :text="comment.commentText" :visible-limit="500" />
|
||||||
<div class="comment-footer mt-1 flex items-center">
|
<div class="comment-footer my-1 flex items-center gap-3">
|
||||||
<div class="i-fa6-solid:thumbs-up" />
|
<div class="i-fa6-solid:thumbs-up" />
|
||||||
<span class="ml-1" v-text="numberFormat(comment.likeCount)" />
|
<span v-text="numberFormat(comment.likeCount)" />
|
||||||
<font-awesome-icon v-if="comment.hearted" class="ml-1" icon="heart" />
|
<font-awesome-icon v-if="comment.hearted" icon="heart" />
|
||||||
|
<img v-if="comment.creatorReplied" :src="uploaderAvatarUrl" class="w-5 h-5 rounded-full" />
|
||||||
</div>
|
</div>
|
||||||
<template v-if="comment.repliesPage && (!loadingReplies || !showingReplies)">
|
<template v-if="comment.repliesPage && (!loadingReplies || !showingReplies)">
|
||||||
<div class="cursor-pointer" @click="loadReplies">
|
<div class="cursor-pointer" @click="loadReplies">
|
||||||
@ -73,6 +74,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
uploader: { type: String, default: null },
|
uploader: { type: String, default: null },
|
||||||
|
uploaderAvatarUrl: { type: String, default: null },
|
||||||
videoId: { type: String, default: null },
|
videoId: { type: String, default: null },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -85,6 +87,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async loadReplies() {
|
async loadReplies() {
|
||||||
|
console.log(this.uploaderAvatarUrl);
|
||||||
if (!this.showingReplies && this.loadingReplies) {
|
if (!this.showingReplies && this.loadingReplies) {
|
||||||
this.showingReplies = true;
|
this.showingReplies = true;
|
||||||
return;
|
return;
|
||||||
|
@ -241,6 +241,7 @@
|
|||||||
:key="comment.commentId"
|
:key="comment.commentId"
|
||||||
:comment="comment"
|
:comment="comment"
|
||||||
:uploader="video.uploader"
|
:uploader="video.uploader"
|
||||||
|
:uploader-avatar-url="video.uploaderAvatar"
|
||||||
:video-id="getVideoId()"
|
:video-id="getVideoId()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user