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