Updates on errors

This commit is contained in:
Henrique Dias committed 2017-07-08 11:51:24 +01:00
1 parent 5eab62e0aa
commit c206bea84a
9 files changed
+86 -18

No files matched your search

+7 -1
View File
@@ -14,7 +14,13 @@ const mutations = {
},
showError: (state, value) => {
state.show = 'error'
state.showMessage = value
if (typeof value !== 'object') {
state.showMessage = value
return
}
state.showMessage = value.message
},
setLoading: (state, value) => { state.loading = value },
setReload: (state, value) => { state.reload = value },