Added method to create a new list
This commit is contained in:
@ -12,5 +12,20 @@ export default {
|
||||
title: 'Error',
|
||||
text: err
|
||||
})
|
||||
}
|
||||
},
|
||||
success(e, context) {
|
||||
// Build the notification text from error response
|
||||
let err = e.message
|
||||
if (e.response && e.response.data && e.response.data.message) {
|
||||
err += '<br/>' + e.response.data.message
|
||||
}
|
||||
|
||||
// Fire a notification
|
||||
context.$notify({
|
||||
type: 'success',
|
||||
title: 'Success',
|
||||
text: err
|
||||
})
|
||||
},
|
||||
|
||||
}
|
Reference in New Issue
Block a user