2018-06-07 10:58:44 +10:00
|
|
|
import UserCard from '../user_card/user_card.vue'
|
|
|
|
|
|
|
|
const FollowRequests = {
|
|
|
|
components: {
|
|
|
|
UserCard
|
|
|
|
},
|
|
|
|
created () {
|
2018-06-07 11:24:31 +10:00
|
|
|
this.updateRequests()
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
requests () {
|
|
|
|
return this.$store.state.api.followRequests
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
updateRequests () {
|
|
|
|
this.$store.state.api.backendInteractor.fetchFollowRequests()
|
|
|
|
.then((requests) => { this.$store.commit('setFollowRequests', requests) })
|
|
|
|
}
|
2018-06-07 10:58:44 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FollowRequests
|