Update Timeline.vue

This commit is contained in:
marcin mikołajczak 2019-02-28 18:34:52 +01:00 committed by GitHub
parent 50e7d61f6e
commit 76aab4b435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -922,7 +922,8 @@
if(res.data.length > 0) { if(res.data.length > 0) {
this.following.push(...res.data); this.following.push(...res.data);
this.followingCursor++; this.followingCursor++;
} else { }
if(res.data.length < 10) {
this.followingMore = false; this.followingMore = false;
} }
}); });
@ -939,11 +940,12 @@
if(res.data.length > 0) { if(res.data.length > 0) {
this.followers.push(...res.data); this.followers.push(...res.data);
this.followerCursor++; this.followerCursor++;
} else { }
if(res.data.length < 10) {
this.followerMore = false; this.followerMore = false;
} }
}); });
} }
} }
} }
</script> </script>