forked from AkkomaGang/akkoma-fe
Migrate UserCard to FollowCard and FollowRequestCard
This commit is contained in:
parent
390b2bcfee
commit
96e7e8235d
6 changed files with 9 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
|||
import UserCard from '../user_card/user_card.vue'
|
||||
import FollowRequestCard from '../follow_request_card/follow_request_card.vue'
|
||||
|
||||
const FollowRequests = {
|
||||
components: {
|
||||
UserCard
|
||||
FollowRequestCard
|
||||
},
|
||||
created () {
|
||||
this.updateRequests()
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{$t('nav.friend_requests')}}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<user-card v-for="request in requests" :key="request.id" :user="request" :showApproval="true"></user-card>
|
||||
<FollowRequestCard v-for="request in requests" :key="request.id" :user="request"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import UserCard from '../user_card/user_card.vue'
|
||||
import FollowCard from '../follow_card/follow_card.vue'
|
||||
import userSearchApi from '../../services/new_api/user_search.js'
|
||||
const userSearch = {
|
||||
components: {
|
||||
UserCard
|
||||
FollowCard
|
||||
},
|
||||
props: [
|
||||
'query'
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<i class="icon-spin3 animate-spin"/>
|
||||
</div>
|
||||
<div v-else class="panel-body">
|
||||
<user-card v-for="user in users" :key="user.id" :user="user"></user-card>
|
||||
<FollowCard v-for="user in users" :key="user.id" :user="user"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import apiService from '../../services/api/api.service.js'
|
||||
import UserCard from '../user_card/user_card.vue'
|
||||
import FollowCard from '../follow_card/follow_card.vue'
|
||||
|
||||
const WhoToFollow = {
|
||||
components: {
|
||||
UserCard
|
||||
FollowCard
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{$t('who_to_follow.who_to_follow')}}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<user-card v-for="user in users" :key="user.id" :user="user"></user-card>
|
||||
<FollowCard v-for="user in users" :key="user.id" :user="user"/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue