fix: comment pagination breaks when reopened

This commit is contained in:
Alex 2022-04-21 16:20:46 +12:00
parent e32ce215e9
commit 0ed974e577
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,7 @@ import commentThreadRenderer from "~/components/Comments/commentThreadRenderer.v
import continuationItemRenderer from "~/components/observer.vue";
export default {
props: ["continuation", "commentData", "showComments"],
props: ["defaultContinuation", "commentData", "showComments"],
model: {
prop: "showComments",
@ -65,9 +65,11 @@ export default {
data: () => ({
loading: true,
comments: [],
continuation: null,
}),
mounted() {
if (!this.continuation) this.continuation = this.defaultContinuation;
this.paginate();
},

View File

@ -172,7 +172,7 @@
v-if="loaded && video.commentData"
>
<mainCommentRenderer
:continuation="video.commentContinuation"
:defaultContinuation="video.commentContinuation"
:commentData="video.commentData"
v-model="showComments"
></mainCommentRenderer>