aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_reporting_modal
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-03-20 12:11:15 -0400
committertaehoon <th.dev91@gmail.com>2019-05-03 11:40:05 -0400
commit1878e56c16cf2ed09faf653a69efeca73c38ea65 (patch)
treec8b851686086f81d8d455c86141f6c76164d1e79 /src/components/user_reporting_modal
parent02d169b92c61015a5663b703a23e769848239b13 (diff)
reset modal state when userId is changed
Diffstat (limited to 'src/components/user_reporting_modal')
-rw-r--r--src/components/user_reporting_modal/user_reporting_modal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/user_reporting_modal/user_reporting_modal.js b/src/components/user_reporting_modal/user_reporting_modal.js
index 87b6fde9..ed7e74f0 100644
--- a/src/components/user_reporting_modal/user_reporting_modal.js
+++ b/src/components/user_reporting_modal/user_reporting_modal.js
@@ -36,6 +36,9 @@ const UserReportingModal = {
},
watch: {
userId (value) {
+ // Reset state
+ this.comment = ''
+ this.forward = false
this.statusIdsToReport = []
}
},