mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Review: lint
This commit is contained in:
parent
7ff9d617d6
commit
2c7ca87acc
@ -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: {
|
||||||
@ -463,7 +463,7 @@ export default {
|
|||||||
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',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user