add processing state and close modal after api request is completed
This commit is contained in:
parent
1878e56c16
commit
1b07c6ae4f
3 changed files with 11 additions and 7 deletions
|
@ -23,10 +23,6 @@ const reports = {
|
|||
},
|
||||
closeUserReportingModal ({ commit }) {
|
||||
commit('closeUserReportingModal')
|
||||
},
|
||||
reportUser ({ state, rootState, commit }, params) {
|
||||
rootState.api.backendInteractor.reportUser({ userId: state.userId, ...params })
|
||||
.then(result => console.log(result))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue