1
0

Refactor success and error messages

This commit is contained in:
kolaente
2021-06-22 22:07:57 +02:00
parent ab4edc17de
commit cdc805c8da
55 changed files with 219 additions and 256 deletions

View File

@ -1,13 +1,4 @@
export default {
setLoading(context) {
const timeout = setTimeout(function () {
context.loading = true
}, 100)
return () => {
clearTimeout(timeout)
context.loading = false
}
},
error(e, context, actions = []) {
// Build the notification text from error response
let err = e.message