diff options
| author | Ilja <ilja@ilja.space> | 2022-02-26 01:53:01 +0100 |
|---|---|---|
| committer | Ilja <ilja@ilja.space> | 2022-02-26 01:53:01 +0100 |
| commit | 819b76026101ddc0363118f240049a0019ebb4d6 (patch) | |
| tree | e75febbf83ef90fd2371a9be0f864989db981203 /src/modules/reports.js | |
| parent | 52c22e863e66cd165adb100af42b88f5bbb116f0 (diff) | |
Fix up and code review
* Check if it works properly
* Notifs are shown as BE returns them
* The Interaction view has Reports, but only when you're mod or admin
* Do some extra translations
* Fix some console spam
Diffstat (limited to 'src/modules/reports.js')
| -rw-r--r-- | src/modules/reports.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/reports.js b/src/modules/reports.js index b25e9ee9..925792c0 100644 --- a/src/modules/reports.js +++ b/src/modules/reports.js @@ -43,11 +43,8 @@ const reports = { }, setReportState ({ commit, dispatch, rootState }, { id, state }) { const oldState = rootState.reports.reports[id].state - console.log(oldState, state) commit('setReportState', { id, state }) - rootState.api.backendInteractor.setReportState({ id, state }).then(report => { - console.log(report) - }).catch(e => { + rootState.api.backendInteractor.setReportState({ id, state }).catch(e => { console.error('Failed to set report state', e) dispatch('pushGlobalNotice', { level: 'error', |
