diff --git a/nuxt-frontend/components/Blog.vue b/nuxt-frontend/components/Blog.vue index c5d542a63..4710ab030 100644 --- a/nuxt-frontend/components/Blog.vue +++ b/nuxt-frontend/components/Blog.vue @@ -15,6 +15,9 @@ :count="count" :status="status" /> +
+ +
store.status); let postLimit = config.POST_PAGINATION_LIMIT; await useAsyncData("blogs", () => - store.loadResources(config.SHOW_DRAFT_POSTS, isResource.value, 0, postLimit), + store.loadResources(config.SHOW_DRAFT_POSTS, isResource.value, 0, postLimit) ); if (status.value === config.SUCCESS) { @@ -69,17 +73,20 @@ const handleScroll = () => { return; } + showLoader.value = true; + useAsyncData("paginate", () => store.loadPaginateResources( config.SHOW_DRAFT_POSTS, isResource.value, posts.value.length, - postLimit, - ), + postLimit + ) ).then(() => { + showLoader.value = false; posts.value.push(...resources.value); posts.value = Array.from(new Set(posts.value.map(JSON.stringify))).map( - JSON.parse, + JSON.parse ); }); } diff --git a/nuxt-frontend/pages/author/[slug].vue b/nuxt-frontend/pages/author/[slug].vue index 71b1f72b5..2f45c5010 100644 --- a/nuxt-frontend/pages/author/[slug].vue +++ b/nuxt-frontend/pages/author/[slug].vue @@ -33,6 +33,9 @@
+
+ +