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
This commit is contained in:
parent
52c22e863e
commit
819b760261
7 changed files with 22 additions and 10 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue