-
+
+
+
@@ -243,6 +248,7 @@ export default {
sponsors: null,
selectedAutoLoop: false,
selectedAutoPlay: null,
+ showComments: true,
showDesc: true,
showRecs: true,
showChapters: true,
@@ -363,6 +369,12 @@ export default {
'"]',
});
},
+ toggleComments() {
+ this.showComments = !this.showComments;
+ if (this.showComments && this.comments === null) {
+ this.fetchComments();
+ }
+ },
fetchComments() {
return this.fetchJson(this.apiUrl() + "/comments/" + this.getVideoId());
},