Fix duplicate comments from being displayed
This commit is contained in:
parent
37685de856
commit
ddfe9b745c
|
@ -50,6 +50,16 @@ export default Vue.extend({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getMoreComments: function () {
|
||||||
|
if (this.commentData.length === 0 || this.nextPageToken === null || typeof this.nextPageToken === 'undefined') {
|
||||||
|
this.showToast({
|
||||||
|
message: this.$t('Comments.There are no more comments for this video')
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.getCommentData()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
getCommentReplies: function (index) {
|
getCommentReplies: function (index) {
|
||||||
switch (this.commentData[index].dataType) {
|
switch (this.commentData[index].dataType) {
|
||||||
case 'local':
|
case 'local':
|
||||||
|
@ -173,7 +183,7 @@ export default Vue.extend({
|
||||||
|
|
||||||
getCommentRepliesInvidious: function (index) {
|
getCommentRepliesInvidious: function (index) {
|
||||||
this.showToast({
|
this.showToast({
|
||||||
message: this.$t('Getting comment replies, please wait')
|
message: this.$t('Comments.Getting comment replies, please wait')
|
||||||
})
|
})
|
||||||
const payload = {
|
const payload = {
|
||||||
resource: 'comments',
|
resource: 'comments',
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
<h4
|
<h4
|
||||||
v-if="commentData.length > 0 && !isLoading && showComments"
|
v-if="commentData.length > 0 && !isLoading && showComments"
|
||||||
class="getMoreComments"
|
class="getMoreComments"
|
||||||
@click="getCommentData"
|
@click="getMoreComments"
|
||||||
>
|
>
|
||||||
{{ $t("Comments.Load More Comments") }}
|
{{ $t("Comments.Load More Comments") }}
|
||||||
</h4>
|
</h4>
|
||||||
|
|
|
@ -473,6 +473,7 @@ Comments:
|
||||||
Comments: Comments
|
Comments: Comments
|
||||||
Click to View Comments: Click to View Comments
|
Click to View Comments: Click to View Comments
|
||||||
Getting comment replies, please wait: Getting comment replies, please wait
|
Getting comment replies, please wait: Getting comment replies, please wait
|
||||||
|
There are no more comments for this video: There are no more comments for this video
|
||||||
Show Comments: Show Comments
|
Show Comments: Show Comments
|
||||||
Hide Comments: Hide Comments
|
Hide Comments: Hide Comments
|
||||||
# Context: View 10 Replies, View 1 Reply
|
# Context: View 10 Replies, View 1 Reply
|
||||||
|
|
Loading…
Reference in New Issue