mirror of https://github.com/VueTubeApp/VueTube
fix: comment pagination breaks when reopened
This commit is contained in:
parent
e32ce215e9
commit
0ed974e577
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@
|
|||
v-if="loaded && video.commentData"
|
||||
>
|
||||
<mainCommentRenderer
|
||||
:continuation="video.commentContinuation"
|
||||
:defaultContinuation="video.commentContinuation"
|
||||
:commentData="video.commentData"
|
||||
v-model="showComments"
|
||||
></mainCommentRenderer>
|
||||
|
|
Loading…
Reference in New Issue