diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2021-01-13 12:53:53 +0200 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2021-01-13 12:53:53 +0200 |
| commit | 9613f80f8ed44a28a189583afa870d559fe58ccc (patch) | |
| tree | fe083fcc02cf19162934302159503defc2628bdf /src/components/user_reporting_modal | |
| parent | 8674f2002320aaa6c380488b0eab636a53c76705 (diff) | |
| parent | f52bca04c9fe272daf81d4c4f839234ce6a80944 (diff) | |
Merge branch 'develop' into feat/report-notification
Diffstat (limited to 'src/components/user_reporting_modal')
| -rw-r--r-- | src/components/user_reporting_modal/user_reporting_modal.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/user_reporting_modal/user_reporting_modal.js b/src/components/user_reporting_modal/user_reporting_modal.js index 38cf117b..8d171b2d 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.statusIdsToReport = this.preTickedIds this.processing = false this.error = false }, |
