diff --git a/public/js/components.js b/public/js/components.js index e41f02e8f..457af0ff0 100644 Binary files a/public/js/components.js and b/public/js/components.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index e0dcd1ee3..841ba01b2 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/PostComments.vue b/resources/assets/js/components/PostComments.vue index 27bfe4bf0..d93396c8f 100644 --- a/resources/assets/js/components/PostComments.vue +++ b/resources/assets/js/components/PostComments.vue @@ -16,7 +16,7 @@
- +

@@ -27,7 +27,7 @@

- + @@ -66,7 +66,7 @@ export default { }, methods: { embed(e) { - pixelfed.embed.build(e); + //pixelfed.embed.build(e); }, deleteComment(id, i) { axios.post('/i/delete', { @@ -95,6 +95,9 @@ export default { let self = this; this.results = response.data.data; this.pagination = response.data.meta.pagination; + if(this.results.length > 0) { + $('.load-more-link').removeClass('d-none'); + } $('.postCommentsLoader').addClass('d-none'); $('.postCommentsContainer').removeClass('d-none'); }).catch(error => { @@ -103,7 +106,6 @@ export default { .attr('style','width:100%') .addClass('pt-4 font-weight-bold text-muted') .text('An error occured, cannot fetch comments. Please try again later.'); - console.log(error); } else { switch(error.response.status) { case 401: @@ -120,7 +122,6 @@ export default { .text('An error occured, cannot fetch comments. Please try again later.'); break; } - console.log(error.response.status); } }); }, diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index a3cdff4f9..ce768e9d5 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -1,113 +1,5 @@