From 50e7d61f6e9022d3f5d6db07b618c38699d9f968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 28 Feb 2019 18:31:35 +0100 Subject: [PATCH] =?UTF-8?q?Don't=20show=20=E2=80=9Cload=20more=E2=80=9D=20?= =?UTF-8?q?if=20there=20is=20nothing=20more=20(followers)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/Profile.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index bdeaa6bb7..f23371d67 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -702,7 +702,8 @@ export default { if(res.data.length > 0) { this.following.push(...res.data); this.followingCursor++; - } else { + } + if(res.data.length < 10) { this.followingMore = false; } }); @@ -719,11 +720,12 @@ export default { if(res.data.length > 0) { this.followers.push(...res.data); this.followerCursor++; - } else { + } + if(res.data.length < 10) { this.followerMore = false; } }); } } } - \ No newline at end of file +