diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/user_card_content/user_card_content.vue | 2 | ||||
| -rw-r--r-- | src/components/user_profile/user_profile.js | 11 | ||||
| -rw-r--r-- | src/components/user_profile/user_profile.vue | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/src/components/user_card_content/user_card_content.vue b/src/components/user_card_content/user_card_content.vue index 0e820182..a93caa5e 100644 --- a/src/components/user_card_content/user_card_content.vue +++ b/src/components/user_card_content/user_card_content.vue @@ -107,7 +107,7 @@ </div> </div> <div class="panel-body profile-panel-body" v-if="!hideBio"> - <div v-if="!hideUserStatsLocal || switcher" class="user-counts"> + <div v-if="!hideUserStatsLocal && switcher" class="user-counts"> <div class="user-count" v-on:click.prevent="setProfileView('statuses')"> <h5>{{ $t('user_card.statuses') }}</h5> <span v-if="!hideUserStatsLocal">{{user.statuses_count}} <br></span> 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: { diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue index f9b964ce..baf6aef6 100644 --- a/src/components/user_profile/user_profile.vue +++ b/src/components/user_profile/user_profile.vue @@ -7,6 +7,7 @@ <div :label="$t('user_card.followees')"> <div v-if="friends"> <user-card v-for="friend in friends" :key="friend.id" :user="friend" :showFollows="true"></user-card> + <div @click="nextFollowsPage" class="panel-footer">MORE</div> </div> <div class="userlist-placeholder" v-else> <i class="icon-spin3 animate-spin"></i> |
