forked from AkkomaGang/akkoma-fe
replace scope attributes by slot-scope
This commit is contained in:
parent
d4e43e0e26
commit
fe7766bc61
6 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<List :items="requests">
|
<List :items="requests">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<FollowRequestCard :user="p.item" />
|
<FollowRequestCard :user="p.item" />
|
||||||
</template>
|
</template>
|
||||||
</List>
|
</List>
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<List :items="items" :getKey="getKey">
|
<List :items="items" :getKey="getKey">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<div class="selectable-list-item-inner" :class="{ 'selectable-list-item-selected-inner': isSelected(p.item) }">
|
<div class="selectable-list-item-inner" :class="{ 'selectable-list-item-selected-inner': isSelected(p.item) }">
|
||||||
<div class="selectable-list-checkbox-wrapper">
|
<div class="selectable-list-checkbox-wrapper">
|
||||||
<Checkbox :checked="isSelected(p.item)" @change="checked => toggle(checked, p.item)" />
|
<Checkbox :checked="isSelected(p.item)" @change="checked => toggle(checked, p.item)" />
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
/>
|
/>
|
||||||
<div :label="$t('user_card.followees')" v-if="followsTabVisible" :disabled="!user.friends_count">
|
<div :label="$t('user_card.followees')" v-if="followsTabVisible" :disabled="!user.friends_count">
|
||||||
<FriendList :userId="userId">
|
<FriendList :userId="userId">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<FollowCard :user="p.item" />
|
<FollowCard :user="p.item" />
|
||||||
</template>
|
</template>
|
||||||
</FriendList>
|
</FriendList>
|
||||||
</div>
|
</div>
|
||||||
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
|
<div :label="$t('user_card.followers')" v-if="followersTabVisible" :disabled="!user.followers_count">
|
||||||
<FollowerList :userId="userId">
|
<FollowerList :userId="userId">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<FollowCard :user="p.item" :noFollowsYou="isUs" />
|
<FollowCard :user="p.item" :noFollowsYou="isUs" />
|
||||||
</template>
|
</template>
|
||||||
</FollowerList>
|
</FollowerList>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="panel-body">
|
<div v-else class="panel-body">
|
||||||
<List :items="users">
|
<List :items="users">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<FollowCard :user="p.item" />
|
<FollowCard :user="p.item" />
|
||||||
</template>
|
</template>
|
||||||
</List>
|
</List>
|
||||||
|
|
|
@ -201,7 +201,7 @@
|
||||||
</Autosuggest>
|
</Autosuggest>
|
||||||
</div>
|
</div>
|
||||||
<BlockList :refresh="true" :getKey="item => item">
|
<BlockList :refresh="true" :getKey="item => item">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<BlockCard :userId="p.item" />
|
<BlockCard :userId="p.item" />
|
||||||
</template>
|
</template>
|
||||||
<template slot="empty">{{$t('settings.no_blocks')}}</template>
|
<template slot="empty">{{$t('settings.no_blocks')}}</template>
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
</Autosuggest>
|
</Autosuggest>
|
||||||
</div>
|
</div>
|
||||||
<MuteList :refresh="true" :getKey="item => item">
|
<MuteList :refresh="true" :getKey="item => item">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<MuteCard :userId="p.item" />
|
<MuteCard :userId="p.item" />
|
||||||
</template>
|
</template>
|
||||||
<template slot="empty">{{$t('settings.no_mutes')}}</template>
|
<template slot="empty">{{$t('settings.no_mutes')}}</template>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<List :items="users">
|
<List :items="users">
|
||||||
<template slot="item" scope="p">
|
<template slot="item" slot-scope="p">
|
||||||
<FollowCard :user="p.item" />
|
<FollowCard :user="p.item" />
|
||||||
</template>
|
</template>
|
||||||
</List>
|
</List>
|
||||||
|
|
Loading…
Reference in a new issue