Refactor success and error messages
This commit is contained in:
parent
ab4edc17de
commit
cdc805c8da
55 changed files with 219 additions and 256 deletions
|
|
@ -67,13 +67,10 @@ export default {
|
|||
name: 'teams.edit',
|
||||
params: { id: response.id },
|
||||
})
|
||||
this.success(
|
||||
{ message: 'The team was successfully created.' },
|
||||
this
|
||||
)
|
||||
this.success({message: 'The team was successfully created.'})
|
||||
})
|
||||
.catch((e) => {
|
||||
this.error(e, this)
|
||||
this.error(e)
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue