Review: lint

This commit is contained in:
Raphael Beer 2020-04-09 23:14:16 +02:00
parent 7ff9d617d6
commit 2c7ca87acc
No known key found for this signature in database
GPG Key ID: C1AC5E018B25EF11

View File

@ -90,17 +90,17 @@
{{ $t('profile.network.title') }}
</ds-heading>
<follow-list
:loading="$apollo.loading"
:user="user"
type="followedBy"
@fetchAllConnections="fetchAllConnections"
:loading="$apollo.loading"
/>
<ds-space />
<follow-list
:loading="$apollo.loading"
:user="user"
type="following"
@fetchAllConnections="fetchAllConnections"
:loading="$apollo.loading"
/>
<ds-space v-if="user.socialMedia && user.socialMedia.length" margin="large">
<base-card style="position: relative; height: auto;">
@ -270,7 +270,6 @@ export default {
mode: 'out-in',
},
data() {
console.log('component data()')
const filter = tabToFilterMapping({ tab: 'post', id: this.$route.params.id })
return {
User: [],
@ -434,7 +433,8 @@ export default {
this.user.followedBy = followedBy
},
fetchAllConnections(type) {
this[`${type}Count`] = Infinity
if (type === 'following') this.followingCount = Infinity
if (type === 'followedBy') this.followedByCount = Infinity
},
},
apollo: {
@ -462,8 +462,8 @@ export default {
variables() {
return {
id: this.$route.params.id,
followedByCount: this.followedByCount,
followingCount: this.followingCount
followedByCount: this.followedByCount,
followingCount: this.followingCount,
}
},
fetchPolicy: 'cache-and-network',