diff --git a/webapp/components/features/FollowList.vue b/webapp/components/features/FollowList.vue index 0f3bf8cfa..0c6560690 100644 --- a/webapp/components/features/FollowList.vue +++ b/webapp/components/features/FollowList.vue @@ -16,7 +16,12 @@ - + {{ $t('profile.network.andMore', { number: this.allConnectionsCount - this.connections.length, @@ -69,6 +74,7 @@ export default { return { additionalConnections: [], filter: null, + isLoading: false, queries: { followedBy: followedByQuery, following: followingQuery, @@ -116,12 +122,14 @@ export default { return uniqBy(items, field) }, async fetchConnections() { + this.$set(this, 'isLoading', true) const { data } = await this.$apollo.query({ query: this.queries[this.type], variables: { id: this.user.id }, // neither result nor update are being called when defined here (?) }) this.additionalConnections = data.User[0][this.type] + this.$set(this, 'isLoading', false) }, setFilter(evt) { this.$set(this, 'filter', evt.target.value)