clean up
This commit is contained in:
parent
792ae1697e
commit
32035217b8
@ -18,7 +18,7 @@ export default {
|
||||
},
|
||||
getKey: {
|
||||
type: Function,
|
||||
default: item => item
|
||||
default: item => item.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,16 +6,7 @@ const SelectableList = {
|
||||
List,
|
||||
Checkbox
|
||||
},
|
||||
props: {
|
||||
items: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
getKey: {
|
||||
type: Function,
|
||||
default: item => item
|
||||
}
|
||||
},
|
||||
props: List.props,
|
||||
data () {
|
||||
return {
|
||||
selected: []
|
||||
|
@ -16,14 +16,14 @@
|
||||
<div :label="$t('user_card.followees')" v-if="followsTabVisible" :disabled="!user.friends_count">
|
||||
<FriendList :userId="userId">
|
||||
<template slot="item" scope="p">
|
||||
<FollowCard :key="p.item.id" :user="p.item" />
|
||||
<FollowCard :user="p.item" />
|
||||
</template>
|
||||
</FriendList>
|
||||
</div>
|
||||
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
|
||||
<FollowerList :userId="userId">
|
||||
<template slot="item" scope="p">
|
||||
<FollowCard :key="p.item.id" :user="p.item" :noFollowsYou="isUs" />
|
||||
<FollowCard :user="p.item" :noFollowsYou="isUs" />
|
||||
</template>
|
||||
</FollowerList>
|
||||
</div>
|
||||
|
@ -200,9 +200,9 @@
|
||||
<BlockCard slot-scope="row" :userId="row.item"/>
|
||||
</Autosuggest>
|
||||
</div>
|
||||
<BlockList :refresh="true">
|
||||
<BlockList :refresh="true" :getKey="item => item">
|
||||
<template slot="item" scope="p">
|
||||
<BlockCard :key="p.item" :userId="p.item" />
|
||||
<BlockCard :userId="p.item" />
|
||||
</template>
|
||||
<template slot="empty">{{$t('settings.no_blocks')}}</template>
|
||||
</BlockList>
|
||||
@ -214,9 +214,9 @@
|
||||
<MuteCard slot-scope="row" :userId="row.item"/>
|
||||
</Autosuggest>
|
||||
</div>
|
||||
<MuteList :refresh="true">
|
||||
<MuteList :refresh="true" :getKey="item => item">
|
||||
<template slot="item" scope="p">
|
||||
<MuteCard :key="p.item" :userId="p.item" />
|
||||
<MuteCard :userId="p.item" />
|
||||
</template>
|
||||
<template slot="empty">{{$t('settings.no_mutes')}}</template>
|
||||
</MuteList>
|
||||
|
Loading…
Reference in New Issue
Block a user