From cea6ea42f0f882864e01f79a8af08c8bc59272fb Mon Sep 17 00:00:00 2001
From: taehoon
Date: Wed, 20 Mar 2019 11:45:19 -0400
Subject: add api service function
---
src/components/user_reporting_modal/user_reporting_modal.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'src/components/user_reporting_modal')
diff --git a/src/components/user_reporting_modal/user_reporting_modal.js b/src/components/user_reporting_modal/user_reporting_modal.js
index fb9ea16d..87b6fde9 100644
--- a/src/components/user_reporting_modal/user_reporting_modal.js
+++ b/src/components/user_reporting_modal/user_reporting_modal.js
@@ -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
--
cgit v1.2.3-70-g09d2