add processing state and close modal after api request is completed

This commit is contained in:
taehoon 2019-03-20 12:20:31 -04:00
parent 1878e56c16
commit 1b07c6ae4f
3 changed files with 11 additions and 7 deletions

View file

@ -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))
}
}
}