add follow requests UI
This commit is contained in:
parent
b8d0a6a0ba
commit
f3a27764aa
7 changed files with 61 additions and 3 deletions
18
src/components/follow_requests/follow_requests.js
Normal file
18
src/components/follow_requests/follow_requests.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import UserCard from '../user_card/user_card.vue'
|
||||
|
||||
const FollowRequests = {
|
||||
data () {
|
||||
return {
|
||||
requests: []
|
||||
}
|
||||
},
|
||||
components: {
|
||||
UserCard
|
||||
},
|
||||
created () {
|
||||
this.$store.state.api.backendInteractor.fetchFollowRequests()
|
||||
.then((requests) => { this.requests = requests })
|
||||
}
|
||||
}
|
||||
|
||||
export default FollowRequests
|
12
src/components/follow_requests/follow_requests.vue
Normal file
12
src/components/follow_requests/follow_requests.vue
Normal file
|
@ -0,0 +1,12 @@
|
|||
<template>
|
||||
<div class="settings panel panel-default">
|
||||
<div class="panel-heading">
|
||||
{{$t('nav.friend_requests')}}
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<user-card v-for="request in requests" :key="request.id" :user="request" :showFollows="false" :showApproval="true"></user-card>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script src="./follow_requests.js"></script>
|
Loading…
Add table
Add a link
Reference in a new issue