yandere_fe/src/components/user_card/user_card.js
2018-06-07 00:58:44 +00:00

31 lines
579 B
JavaScript

import UserCardContent from '../user_card_content/user_card_content.vue'
const UserCard = {
props: [
'user',
'showFollows',
'showApproval'
],
data () {
return {
userExpanded: false
}
},
components: {
UserCardContent
},
methods: {
toggleUserExpanded () {
this.userExpanded = !this.userExpanded
},
approveUser () {
this.$store.state.api.backendInteractor.approveUser(this.user.id)
},
denyUser () {
this.$store.state.api.backendInteractor.denyUser(this.user.id)
}
}
}
export default UserCard