From 1878e56c16cf2ed09faf653a69efeca73c38ea65 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Wed, 20 Mar 2019 12:11:15 -0400
Subject: [PATCH] reset modal state when userId is changed
---
src/components/user_reporting_modal/user_reporting_modal.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/components/user_reporting_modal/user_reporting_modal.js b/src/components/user_reporting_modal/user_reporting_modal.js
index 87b6fde962..ed7e74f072 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 = []
}
},