add api service function
This commit is contained in:
parent
2cda9010df
commit
cea6ea42f0
4 changed files with 30 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue