1
0
Fork 0

Don't show “load more” if there is nothing more (followers)

This commit is contained in:
marcin mikołajczak 2019-02-28 18:31:35 +01:00 committed by GitHub
parent 7437b07d5a
commit 50e7d61f6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}
});
}
}
}
</script>
</script>