aboutsummaryrefslogtreecommitdiff
path: root/src/components/report/report.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/report/report.js')
-rw-r--r--src/components/report/report.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/report/report.js b/src/components/report/report.js
index e81417a8..8131dd89 100644
--- a/src/components/report/report.js
+++ b/src/components/report/report.js
@@ -4,18 +4,23 @@ import generateProfileLink from 'src/services/user_profile_link_generator/user_p
const Report = {
props: [
- 'report'
+ 'reportId'
],
components: {
StatusContent,
Timeago
},
+ computed: {
+ report () {
+ return this.$store.state.reports.reports[this.reportId] || {}
+ }
+ },
methods: {
generateUserProfileLink (user) {
return generateProfileLink(user.id, user.screen_name, this.$store.state.instance.restrictedNicknames)
},
setReportState (id, state) {
- return this.$store.state.api.backendInteractor.setReportState({ id, state })
+ return this.$store.dispatch('setReportState', { id, state })
}
}
}