diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2021-01-18 15:26:08 +0200 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2021-01-18 15:26:08 +0200 |
| commit | e73553dca726703f83e5085560377bfaa202a5f9 (patch) | |
| tree | 90c026143378421d0e8a39862b3a1673da69d312 /src/components/report/report.js | |
| parent | 9613f80f8ed44a28a189583afa870d559fe58ccc (diff) | |
wip
Diffstat (limited to 'src/components/report/report.js')
| -rw-r--r-- | src/components/report/report.js | 9 |
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 }) } } } |
