aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/user_profile/user_profile.js')
-rw-r--r--src/components/user_profile/user_profile.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 27e138b0..4f09c9e7 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -19,6 +19,12 @@ const UserProfile = {
this.$store.dispatch('stopFetching', 'favorites')
this.$store.dispatch('stopFetching', 'media')
},
+ data () {
+ return {
+ followsPage: 0,
+ followersPage: 0
+ }
+ },
computed: {
timeline () {
return this.$store.state.statuses.timelines.user
@@ -80,6 +86,11 @@ const UserProfile = {
if (this.isUs) {
this.$store.dispatch('startFetching', ['favorites', this.fetchBy])
}
+ },
+ nextFollowsPage () {
+ this.followsPage += 1
+ this.$store.dispatch('addFriends', { id: this.userId, page: this.followsPage })
+ console.log(this.user.friends)
}
},
watch: {