From ef88e08e87c8e848e08c9c7ac4ce13a99109a26f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 13 Nov 2018 12:46:38 -0700 Subject: [PATCH] Update PostComments.vue --- .../assets/js/components/PostComments.vue | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/resources/assets/js/components/PostComments.vue b/resources/assets/js/components/PostComments.vue index 7b62c54f5..252bf1eb8 100644 --- a/resources/assets/js/components/PostComments.vue +++ b/resources/assets/js/components/PostComments.vue @@ -18,22 +18,24 @@
-

- - {{l(comment.account.username)}} - +

+ + + {{l(comment.account.username)}} + + + + + Reply + Permalink + Embed + Profile + + Report + - - - Reply - Permalink - Embed - Profile - - Report -

@@ -55,6 +57,9 @@ export default { mounted() { this.fetchData(); }, + updated() { + pixelfed.readmore(); + }, methods: { embed(e) { pixelfed.embed.build(e); @@ -111,7 +116,6 @@ export default { $('.load-more-link').addClass('d-none'); return; } - $('.postCommentsContainer').addClass('d-none'); $('.postCommentsLoader').removeClass('d-none'); let next = this.pagination.links.next; axios.get(next) @@ -122,7 +126,6 @@ export default { for(let i=0; i < res.length; i++) { this.results.unshift(res[i]); } - $('.postCommentsContainer').removeClass('d-none'); this.pagination = response.data.meta.pagination; }); }