diff options
| author | shpuld <shp@cock.li> | 2019-01-31 21:11:28 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-01-31 21:11:28 +0200 |
| commit | 8ce513ed09124fa0183943c359950f49ebcf2f89 (patch) | |
| tree | a3a54f7ee6bec7a288a88028a6b2368e46b0a538 /src/components/user_profile/user_profile.js | |
| parent | fbe7af3d56e4e6e168208a511bd7cd4e4e4e7a40 (diff) | |
initial draft for follows/following pagination
Diffstat (limited to 'src/components/user_profile/user_profile.js')
| -rw-r--r-- | src/components/user_profile/user_profile.js | 11 |
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: { |
