1
0

Added method to create a new list

This commit is contained in:
konrad
2018-09-09 21:28:07 +02:00
parent 27e2192747
commit 5ff4f5eb46
4 changed files with 105 additions and 7 deletions

View File

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