Skip to content
Snippets Groups Projects
Commit 0ee0551a authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

fix changing reported status on same user

parent 65dbf7b8
No related branches found
No related tags found
No related merge requests found
......@@ -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
},
......
......@@ -4,7 +4,7 @@ const reports = {
state: {
userId: null,
statuses: [],
preTicked: [],
preTickedIds: [],
modalActivated: false
},
mutations: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment