add api service function

This commit is contained in:
taehoon 2019-03-20 11:45:19 -04:00
parent 2cda9010df
commit cea6ea42f0
4 changed files with 30 additions and 7 deletions

View file

@ -44,12 +44,12 @@ const UserReportingModal = {
this.$store.dispatch('closeUserReportingModal')
},
reportUser () {
const payload = {
const params = {
comment: this.comment,
forward: this.forward,
statusIdsToReport: this.statusIdsToReport
statusIds: this.statusIdsToReport
}
this.$store.dispatch('reportUser', payload)
this.$store.dispatch('reportUser', params)
},
isChecked (statusId) {
return this.statusIdsToReport.indexOf(statusId) !== -1