diff --git a/src/components/user_reporting_modal/user_reporting_modal.js b/src/components/user_reporting_modal/user_reporting_modal.js index 5ec4a5dfde..8d171b2d58 100644 --- a/src/components/user_reporting_modal/user_reporting_modal.js +++ b/src/components/user_reporting_modal/user_reporting_modal.js @@ -38,17 +38,23 @@ const UserReportingModal = { }, statuses () { return this.$store.state.reports.statuses + }, + preTickedIds () { + return this.$store.state.reports.preTickedIds } }, watch: { - userId: 'resetState' + userId: 'resetState', + preTickedIds (newValue) { + this.statusIdsToReport = newValue + } }, methods: { resetState () { // Reset state this.comment = '' this.forward = false - this.statusIdsToReport = this.$store.state.reports.preTickedIds + this.statusIdsToReport = this.preTickedIds this.processing = false this.error = false }, diff --git a/src/modules/reports.js b/src/modules/reports.js index c6026f38b7..fea83e5f07 100644 --- a/src/modules/reports.js +++ b/src/modules/reports.js @@ -4,7 +4,7 @@ const reports = { state: { userId: null, statuses: [], - preTicked: [], + preTickedIds: [], modalActivated: false }, mutations: {