2018-06-06 17:58:44 -07:00
|
|
|
import UserCard from '../user_card/user_card.vue'
|
|
|
|
|
|
|
|
const FollowRequests = {
|
|
|
|
components: {
|
|
|
|
UserCard
|
|
|
|
},
|
|
|
|
created () {
|
2018-06-06 18:24:31 -07: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-06 17:58:44 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FollowRequests
|