akkoma-fe/src/components/follow_requests/follow_requests.js

24 lines
480 B
JavaScript
Raw Normal View History

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