aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_reporting_modal
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2021-01-12 14:55:31 +0200
committerShpuld Shpuldson <shp@cock.li>2021-01-12 14:55:31 +0200
commit0ee0551a471266066050e059876ee24a4637c1ad (patch)
tree129c08583744d10e5fbee099e798af0dd190d4e6 /src/components/user_reporting_modal
parent65dbf7b85d680f0855e9f6706a4437d2f4a52227 (diff)
fix changing reported status on same user
Diffstat (limited to 'src/components/user_reporting_modal')
-rw-r--r--src/components/user_reporting_modal/user_reporting_modal.js10
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 5ec4a5df..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.$store.state.reports.preTickedIds
+ this.statusIdsToReport = this.preTickedIds
this.processing = false
this.error = false
},